Hi I need your helps.

I think gold coins are required to clear on the priority.

How can I change for the better?

hint shows “value”. I don’t know how to use it.

```
// Collect more coins than your doppelganger.
// You only have a few seconds to collect coins. Choose your path wisely!
loop {
var bestCoin = this.findItems("GOLD COIN");
var maxRating = 0;
var coinIndex = 0;
var coins = this.findNearest(this.findItems());
// Try calculating "value / distance" to decide which coins to get.
if(coins){
var distance = this.distanceTo(coins);
if(distance < 20) {
pos = coins.pos;
coinX = coins.pos.x;
coinY = coins.pos.y;
this.moveXY(coinX, coinY);
pos = coins.pos;
}else if(bestCoin){
pos = coins.pos;
coinX = coins.pos.x;
coinY = coins.pos.y;
this.moveXY(coinX, coinY);
pos = coins.pos;
}
}
}
```