Extended Reyna’s changes to GameMainViewController,
partly in order to have it there, partly so that I was sure I understood it, what it depended on, etc.
Everything from the comment // Get the target from the cycle in the user's current game. to the end of the method should eventually be moved to a separate class and out of the view controller.
Made two buttons, with appropriate text/state for the user.
The InactiveGameViewController now has two buttons, a leaveButton and a startButton. For the manager, these say “delete game” and “start game.” For everyone else, these say “leave game” and “start game,” but the start game button is disabled and greyed out.
We can start games!
The leaveButton still doesn’t do anything (as leave game or as delete game), but the startButton does actually start the game.