updated player.py