consider the special case: next floor == cur floor, whenever you have a question at code, question it