Endless Loop....

I wouldn’t use the loop at all. Like I said previously I’d structure the flow to call an Evaluation function or event after each player has committed a turn.

The Evaluation function/event determines if the game is over or not. On true it calls an event that actually ends the game. Otherwise it “sets” the next players turn and the game proceeds.