Elevator simulator in Java