According to wiki:
https://polytopia.fandom.com/wiki/Game_Modes#Glory
The objective of the Glory game mode is to be the first player to achieve a score of 10,000 points. If multiple players get 10,000 points in the same turn, the player with the most points at the end of the turn wins, even if that player was not the first to get 10,000 points. The single-player counterpart of Glory is Perfection.
However, the game seems to work differently. When one player (moving first) reached score 10k in round 20, the game immediately ended.
Screenshot from the replay:
https://8upload.com/uploaded/68e0211564a26/94939597.php