Help on savern desert: hoarding gold

I think the level on Code-Combat, and i have experienced a funny looking thing. every time i move about one pixel, my hero will say, i have 3 gold, i have 6 gold (for a check every time, because the character did not stop until i started experiencing this. What am i doing wrong?

Can you please post your code? Is it showing any code errors?

Also please post your code with proper formatting according to the FAQ.

Using .move equipment instead of moveXY in a loop while distance to destination > 1 and have your say( as part of the loop?

I tried that. like hero.move(gold.pos)

No. I deleted my code because i got angry. But it was like i said hero.move(item.pos) then say.(“I have”+ totalGold)