Implemented 'Elo' rating algorithm