made some minor fixes to the player class