modified leaderboard rank logic