private bool isTop(Desire tocheck) { if (topPriority == null) { return(false); } else { return(tocheck.Equals(topPriority)); } }