code style in GameEngine.dart