Updated GameEngine code.