save game in localStorage & add ease function for XP & treasures