Fixing the player class