Updated player1.py based on player.cpp