Play again:
Wrap your code in a while loop & ask the user if they want to play again. Whatever the input, that should be part of the condition in your while loop.