I would have this up in the control flow of the program --- so the thing that loops over, should have a way to tell if the game should continue or not. 

This is normally a value on the Game object (or similar).