private static boolean checkCollision(Ball ball1, Ball ball2)
	{
		double xd = Math.abs(ball1.getX() - ball2.getX());
		double yd = Math.abs(ball1.getY() - ball2.getY());
		double sqrRadius = ball1.getBallSize() * ball2.getBallSize(); 
		double dRadius = (xd * xd) + (yd * yd);
	
		// We've found the distance between the two points, if it's
		// smaller than the square radius of both the balls we've found
		// a collision.
		return dRadius <= sqrRadius;
		
	}