var counter;

function setup() {
    var canvas = createCanvas(400, 400);
    canvas.parent('play');
    counter = new Counter();
    counter.new();
}

function draw() {
    background(233, 0, 0);
    counter.draw();
}

function keyTyped() {
    if (key === ' ') {
        counter.new();
    }
}

function Counter () {
    this.objects = [];
    this.number = 0;
   
    this.new = function () {
        this.objects = [];
        this.number = random(1, 10);
        while(this.objects.length < this.number - 1) {
            var newObject = createVector(random(45,355), random(45,355));

            if (this.objects.every(function(item){
                return p5.Vector.sub(item, newObject).mag() > 85;
            }))
            {
                this.objects.push(newObject);
            }
        }
    }

    this.draw = function() {
        for(var i = 0; i < this.objects.length; i++) {
            var object = this.objects[i];
            ellipse(object.x, object.y, 80);
        }
    }
}
@@ -286,24 +286,279 @@
 );%0A    %7D%0A%7D%0A%0A
+function touchStarted() %7B%0A    if (touches.length %3E 0) %7B%0A        var touch = touches%5B0%5D;%0A        if (%0A            touch.x %3E= 0 && touch.x %3C 400 &&%0A            touch.y %3E= 0 && touch.y %3C 400 %0A        )%0A        %7B%0A            counter.new();%0A        %7D%0A    %7D%0A%7D%0A%0A
 function Cou

Add touch support for the redraw of the circles