set and change player/ai turn