store the game data using nsuserdefaults