A boolean variable can have two values: true and false.

You can use an if statement to test its value and do something that will "end the game" if it is true.

Define the boolean as a class...