There's a timer at the top of the screen when you play the doctor part. When it reaches zero you return to the battlefield and the game loops. You can technically play forever with new, unique names for the blurble soldiers being generated every time.
But yeah, it's jankey in every respect 😅
Thanks for coming back to it though and trying it out!