added functionality to player.py