Pender's trial infinite loop help

infinite loops error

soldier and archer weak or the enemy just too many

i didnt get any (20chars)

does the code work ?

maybe it just because the code too slow