Its saying fix your code line 11 try self.findfriends but i am following what it says on the item
#Summon some soldiers, then direct them to your base.
#Each soldier costs 20 gold.
while self.gold > self.costOf("soldier"):
self.summon("soldier")
soldiers = self.findFriends() #Define these OUTSIDE the while-loop
soldierIndex = 0
#Add a while loop to command all the soldiers.
while (soldierIndex < len(soldiers)):
#Do all your actions here
friend = self.getNearestFriend()
self.command(friend, 'move', self.pos)
#Go join your comrades!
self.moveXY(50, 41)