Sounds like what you want is a while loop (or a do-while loop if you want them to play once before asking them if they want to play again). Create a flag which would denote if the user wants to play...