1: get rank error, start at 0;2: update scores if new is less than old one