Fixed bug in player class.