After a few runs, I got better at controlling the soldiers and was finally able to win.
I ended up building paths so I could reach the whistle no matter where it spawned, which made it feel like a really important object for me.
I had a lot of fun with this.