Set up a state machine to control the game flow from the beginning of the game to the end of the game over all rounds