private void mainLoop() {
   mainController.timeStep();
   if (world.isGameLost()) {
     eventBus.fireEvent(new GameFinishedEvent());
     timer.cancel();
   }
 }