changed back to clean code, make minScore = max(sumAll) + N * max(sumFive)