How to permanently draw a for loop inside an if statement? - Processing : I have a if statement which checks for collision as such:

    if (BallY == y && BallX == x) // check for collision
      {
        x = 80; // reset x to initial
        y = 240; // reset y to initial
        z = 100; //reset z to initial
      }

I need a for loop inside this if statement as such:

    if (BallY == y && BallX == x) // check for collision
      {
        x = 80; // reset x to initial
        y = 240; // reset y to initial
        z = 100; //reset z to initial
        for (int i=50; i<width; i+=80)
        {
          fill(250,0,0);
          ellipse(i, 50, 70, 70);
        }
      }

So the point is to draw a line of circle's on the top of the screen once the collision occurs. This code however, only draws them for a split second then they disappear. How would i make them stay given that a collision has occurred?