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?
Code:
While input does not equal the exit command
{
Get input
if (input is valid)
{
Do something with valid input and ask for next input
}
else
{
If (input does not equal the exit command)
{
Throw an error an error and ask for a valid input
}
}
}