added print function to class Player