{Backwoods Forest} - Help with Friend and foes

Welcome to the CodeCombat discourse.

What are you missing here?

In future please do format it, it wasn’t needed this time, but it really doesn’t take very long to do. You an read this topic for instructions on how to format: How to Post Your Code With Radiant, Harmonious Formatting.
Thanks
Danny