ai and player changed