Lots of progress but there's a bug that happens after a match ends: the wrong participants are used in the next game.