So im doing golden mirage, and i did a function to sort out the bad coins. My function found out the bad coins, and it shows up in my screen, but my hero just goes back and forth and doesnt move more than a few metres from the center.

```
def badCoins(coins):
badCoins = []
for j in range(len(coins)):
for i in range(len(coins)):
if coins[i] is coins[j]:
continue
if coins[i].value == coins[j].value:
badCoins.append(coins[i], coins[j])
return badCoins
while True:
coins = hero.findItems()
bedCoins = badCoins(coins)
for coin in coins:
if coin not in badCoins:
hero.move(coin.pos)
```