Update player.py

Fix AttributeError in player.py