made a single instance of GameEngine
added property for ending game loop