Added the new functions to the player class.