Cale...so the scores aren't summed.  Your final score is the highest score you got on the last step in the problem you got to, across all attempts.

You are right about max score.  I think my newest code (just updated the comment) is correct.  Lots of edge cases to think through.