Sand snake level help

You have to move the hero.moveXY(nearest.pos.x, nearest.pos.y) backwards. It should be after the while coinIndex < len(coins): loop, not inside it.
Danny