ArrayList<Bubble> bubbleBath = new ArrayList<Bubble>();
Bubble us = new Bubble();
void setup()
{
  fullScreen();
  us.myRadius = 8;
  while( bubbleBath.size() < 100 )
  {
    bubbleBath.add( new Bubble() );
  }
  
  Bubble king = bubbleBath.get(0);
  for(Bubble b : bubbleBath)
  {
    if(b.myRadius > king.myRadius)
    {
      king = b;
    }
  }
  king.isKing = true;
  
  noCursor();
}
void draw()
{
  background(255);
  
  
  us.moveTo(mouseX,mouseY);
  us.drawYourself();
  
  for(Bubble b : bubbleBath)
  {
    b.move();
    b.drawYourself();
    if( b.isInside(us) )
    {
      us.eat(b);
      b.relocate();
    }
    if( us.isInside(b) )
    {
      us.myRadius = 8;
    }

  }
  

}