How does rank score work?