added algorithm for display of top scores