Hi,

i’m having trouble with this one, my hero will collect two Gold coins but when he’s about to get the third one the coins disappears.

```
while True:
closestGold = None
minGoldDist = 9001
coinIndex = 0
coins = hero.findItems()
while coinIndex < len(coins):
coin = coins[coinIndex]
if coin:
distance = hero.distanceTo(coin)
if distance < minGoldDist and coin.value == 3:
closestGold = coin
minGoldDistance = closestGold
pass
coinIndex += 1
pass
if closestGold:
hero.moveXY(closestGold.pos.x, closestGold.pos.y)
pass
```