total score should be the sum of all leaf nodes's score.
total score should be the sum of all leaf nodes's score.