Added method to perform common functions of the player