Best incremental I think I've ever played.
You most likely did something along the lines of:
// greater than 20 if money > 20 { // (incorrect way) } // greater than or equal to if money >= 20 { // (correct way) }
Was crazy good for a first game!
Fun little game. Took about an hour or so to beat and had good scaling. Well done!
I was struggling on the second/third boss until I figured this out as well. Putting some into healer helped too, because it gives major damage boosts on heal. Other units simply weren't worth upgrading or even purchasing.