Finalized ELO ranking logic