merging leaderboard pagination solution from dingjian - 191288
Merging solution for leaderboard pagination