public void addNewBall()
	{
		if(nBalls<maxBalls)
		{
			for(int i=0;i<maxBalls;i++)
				if((balls[i]!=null && !balls[i].ballAlive) || balls[i]==null)
				{
					balls[i]=new Ball();
					new Thread(balls[i]).start();
					break;
				}
			nBalls++;
		}
		
	}