Fixed bugs within the GameEngine