Write the state of the game to a file. When the user restarts the game, load the file to restore the state of the game. Pretty straight forward if you're using classes.
For example, if you have a Game class along with two Player instances, simply write those three objects to a file. When you restart, initialize the Game class and the two player instances from the data saved in the file.