Added code for GameEngine.