Fixed finalize_score function that scored repeating constants only once.