Replace Board Hovers

So it is a very nice code See HTML and JS:
HTML:

<div class='stars-counter'></div>

JavaScript:

svg.append('deafeats'); // deafeat the logos
// make if statement
if (disableLimits() === document.getElementById('stars-counter')) {
    disableLimits('dip to play'); // play it
} else {
   // create an for loop!
   for (let i = 0; i < 10; i++) {
       svg.append('circle').attr('r', 15).attr('cx', pickRandom(255)).attr('cy', pickRandom(255)).attr('fill', pickRandom([red, blue, yellow, green, 'violet', 'purple', orange])); // colors made the circles
       let all = d3.selectAll('circle'); // select all the circle
       all.on('click', all.transition().duration(5000).attr('cx', pickRandom(255)).attr('cy', pickRandom(255))); // make an click hover!
   }
}