Added score trimming for a maximum number of high scores.