using localStorage to store game progress