Expanded MainComponent.run() method,added classes Time and game.