This is my code for Ring Bearer:

```
# You must escort a powerful magical ring back to town to be studied.
# The goal is to escape, not fight. More ogres lurk in the surrounding mountains!
# Make a circle of soldiers around the peasant!
# We give you two functions to help with this:
# findSoldierOffset figures out the position a soldier should stand at in relation to the peasant.
# The first argument 'soldiers' should be an array of your soldiers.
# The second argument 'i' is the index of the soldier (in soldiers) you want to find the position for.
def findSoldierOffset(soldiers, i):
soldier = soldiers[i]
angle = i * 360 / len(soldiers)
return radialToCartesian(5, angle)
# This function does the math to determine the offset a soldier should stand at.
def radialToCartesian(radius, degrees):
radians = Math.PI / 180 * degrees
xOffset = radius * Math.cos(radians)
yOffset = radius * Math.sin(radians)
return {"x": xOffset, "y": yOffset}
peasant = self.findByType("peasant")[0]
self.findByType("soldier")
loop:
for soldier in soldier:
def findSoldierOffset(soldiers, i):
soldier = soldiers[i]
angle = i * 360 / len(soldiers)
return radialToCartesian(5, angle)
moveTo = {x: peasant.pos.x + offset.x, y: peasant.pos.y + offset.y}
self.command(soldier, "move", moveTo)
# The hero should keep pace with the peasant!
self.move({"x": self.pos.x + .3, "y": self.pos.y})
```

what am i doing wrong? the soldiers donâ€™t move until Hectorâ€™s dead.