AFinn #2Threefold repetition relates to the position not the moves. So the positions at the end of black's move 20, 22, 24 are repeats.4