public static synchronized void eliminatePlayers() {
if (countPlayersToMakeTest() > 0) {
throw new IllegalStateException("Cannot eliminate players before test is completed");
}
List<Result> sortedResults = new ArrayList<>(results);
Collections.sort(sortedResults, new ResultsLowestFirstComparator());
int eliminatedPlayers = 0;
int i = 0;
while (eliminatedPlayers < numberOfPlayersToEliminate) {
Result eliminated = sortedResults.get(i++);
Player player = eliminated.getPlayer();