Fixed player profile saving and added debug stuff

Fixed player profile saving and added debug stuff to trap errors