If you put an option to play again and then tell it to load the Game layout it would restart the game loop for that layout. Basically restarting the game. Since you have it to go to a different layout for the GameOver' the 'Game' layout is unloaded. Loading it back in would restart it. Also if you don't want the global variables to carry over remember to tell it to reset them.