while hero.gold < 30:
# Find and collect coins.
item = hero.findNearestItem()
if item:
hero.moveXY(item.pos.x, item.pos.y)
I think we need to block Boss Star for this level. I already have 140 gold, after I defeat the last ogre.