Added ELO calculation function