Sum4 is a very bizarre metric to me, since there is no obvious way to figure out what a good sum is without just testing a bunch of things. I just spent some time optimizing this solution and called it quits. Perhaps if I had more experience with the game, I could better judge how far off min this is. 60 maybe? Let's go with that.