Added a method definition in Player.