added leaderboard function, a little slow, but it works :)