Serialize player object
Move main into a class