help micro elevator code

Could this be a case of the elevator not going all the way to the top?

With all those misplaced semicolons anything can happen.