Assesment wanted for "Adding features to our bouncing balls demo"

Hi everyone!
I got stuck with the ball counter.
For some reason when a ball seases to exist my counter keeps going down by a LOT. I don’t understand whats going on, i took a look to the original source code (no hate pls) and it seems to be exaclty the same.
Thanks in advance.
CODEPEN LINK

Hello @nicolasmarinellids

change this

EvilCircle.prototype.collisionDetect = function () {
  for (let j = 0; j < balls.length; j++) {
    if (!(balls[j] === false)) {

to this

EvilCircle.prototype.collisionDetect = function () {
  for (let j = 0; j < balls.length; j++) {
    if (balls[j].exists) {

as you need to compare the value of exists field of the ball

hope that help ad have a nice day :slight_smile: