your top5 code could be done a lot easier i believe, no need to stress it out like that.
create a variable, loop through all players. variable = 0; if player's score is bigger than the variable their score will be the variable and their name will be saved; repeat