Calculate your path to beat the boss! Use A and D to move.
Your math was slightly off! You didn't have enough stickmen to beat the boss.
Your calculations were spot on. The boss is defeated!