• When the game receives the information that the game has ended, set the flag to true, so that the game can switch back to the main menu for instance.

    Returns void