Hold for reinforcements

I think my son has the correct solution but the central peasant in this challenge always dies.

The loop basically consists of… finding a flag, fighting an enemy, or saying “Send me to the central peasant”.

Are we missing something?

Thanks in advance,

Jeff

Resolved. When my son submitted everything went fine.