Added code to calculate the high-score list.