Looks good to me :) What the save is doing is saving the variables (sand, ore stone) value to an array. (SAVEARRAY) That array then gets saved as a file that can then be used to load all the values back into the variables. All you need to do is figure out which variables you need to save in your game and make the array big enough to hold them all.