Implemented game movement logic.