small refactor to app.GameEngine