Code for creating player and storing it in localstorage
Using JSON format.
Adding join game implementation.