def main(): """ This is the main function that initialises the game and manages the game loop """ game = Game() game.begin() while game.inPlay(): game.play()