Player.php based on player1.py