Try taking away the friend = hero.findFriends()
in your if enemy statement because you already defined that.
Also, if it is saying it can’t command an array, you probably need a for friend in friends
somewhere in there.
Can you send the link to this level?