Fix implementation of elo