Added a few method definiions to the player class.