My idea was that the enemy is the "player", so it would only try to collect the nearest coins first. I realised too late that the actual gameplay is boring lol. Anyways thanks for taking time to play my game.