Added better checking for findAvailableElevator()