public PropQuad(PropQuad parent, Rectangle2D container, ArrayList<Entity> props, ArrayList<Rectangle2D> rects, ArrayList<Rectangle2D> flatRects) {
		this.parent = parent;
		this.container = container;
		for(int x = 0; x<props.size(); x++) {
			if(container.intersects(props.get(x).getBox())) {
				this.props.add(props.get(x));
			}
		}
		for(int x = 0; x<rects.size(); x++) {
			if(container.intersects(rects.get(x))) {
				this.rects.add(rects.get(x));
			}
		}
		for(int x = 0; x<flatRects.size(); x++) {
			if(container.intersects(flatRects.get(x))) {
				this.flatRects.add(flatRects.get(x));
			}
		}
		
		PropQuad.totalChildren += 1;
		
		if(this.props.size() + this.rects.size() > size && container.getWidth() > Theater.get().getScreen().camera.getWidth()/10 && noChildren()) {
			propChildren = new PropQuad[4];
			addChildren(0);
		}
	}