Elevator simulation program written in scala