Limit the range of path finding
Remove spawnUnits to stop out-of-order bug