Since the success of the algorithm to check the distribution of results depends on the order in which the results of each team are given,
the algorithm is applied as many times as the number of teams (each time the order of the teams is rotated to have a different team at the beginning).
This was evident when adding new test cases (the corresponding to the results obtained in the 8 groups of the worldcup) and the tests corresponding to group D and E broke.