implemented custom toString() method for class Player