Coded player.py