Created playerService class

Created a new class, playerService, to hold data specific to this
current session.
Save and load game automatically

Use localStorage to save the state of the game as it changes, and to
load it upon startup.