Changed data so that player data is stored in a struct.