fixing simulation algorithm to calculate correctly the matches in each round