You have to save the variable values. I recommend you check one of the tutorials that teach you about saving and loading your game. It should contain the info you need.
And yes you can use my project for commercial purposes but not in all cases. Please read the “license.txt” that comes with the download.