This code is supposed to draw 20 circles that are not intersecting, but it doesn’t.

Where is the error in this?

```
var circles=[];
function setup() {
createCanvas(600, 400);
background(0);
for(var i=0; i<20; i++) {
var circle = {
x: random(width),
y: random(height),
r: 36
}
var overlapping=false;
for(var j = 0; j < circles.length; j++) {
var other = circles[j];
var d = dist(circle.x, circle.y, other.x, other.y);
if(d < circle.r + other.r) {
overlapping = true;
}
if(!overlapping) {
circles.push(circle);
}
}
}
for(i=0; i<circles.length; i++) {
ellipse(circles[i].x, circles[i].y, circles[i].r);
}
}
function draw() {
}
```