save function??

Hello,
I want to write a code that allows a card game free cell to be saved,so, a player can come back later and continue playing the saved game. I have no cidea how to do this? I will be thankfull if any can help.
Thank you