Calculates elo rate