I\'m trying to calculate a new ranking based on the current one, the new ranking is based on the score in matches, if the challenger wins he takes the position of the challe