added code to RobotPlayer1