I suggest a very simple solution for the organizer to get out of this incredibly stupid situation: Alexey, allow leaving as many heroes as you want on the map, and use the strongest of them to determine the parameters (because this is a secondary criterion). Or, set a condition - only Gem remains, and she MUST perform the last action.
PS The second option is almost impossible now!
by the way, the solution you proposed simply ignores my problem...