Auto-translated
I made some adjustments and added the concept of a "left" option, but "first turn" cannot be corrected – it is always present, while there may not be a second turn. For example: on the first turn, I cast a mass slow or speed spell (or Armageddon) and completely destroyed the enemy, not giving him a single turn – how can I call my first turn "the one following my opponent's turn" if he didn't have a single turn? A special case in this situation would be the second turn, if he is lucky enough to get one. By the way, I have encountered this glitch (bug) several times in a similar situation – the AI fled the battlefield without having its turn.