settles logic for leaderboard