Are you calling the game() method on a bad input?
That's what restarting the game, no?
If not, I'm confused.
Are you trying to do something like this?
While input does not equal the exit command
if (input is valid)
Do something with valid input and ask for next input
If (input does not equal the exit command)
Throw an error an error and ask for a valid input