public void expandLeaf() {
//		x = (int) sprites[0].x - 1;
//		y = (int) sprites[0].y - 1;
//		x1 = x + 2;
//		y1 = y + 2;
		Rectangle r = sprites[0].getBoundingBox();
		for (Sprite p : sprites) {
			if (p == null) {
				break;
			}
//			expandLeaf(p);
			r = r.union(p.getBoundingBox());
		}
		x = (int) r.getX();
		y = (int) r.getY();
		x1 = (int) (r.getX() + r.getWidth());
		y1 = (int) (r.getY() + r.getHeight());
	}