Fix collision avoidance bug in miner AI