Corrected high score algorithm