fix a bug in setting the initial score map
This gives the correct answers for test cases 1 through 4