Simulation of Elevator in Java