ex35: branches and functions, and a game