Added input check for movement in GameEngine