code for parsing PlayerInfo