Playername now saved in sharedpreferences

and fixes to sharedpreferences