adding functionality to Player Class