code: public boolean contains(Paintable p) {
  		if (children.contains(p)) {
  			return true;
  		}
  
  		for (Paintable t : children) {
  			if (t instanceof Composite) {
  				if (((Composite) t).contains(p)) {
  					return true;
  				}
  			}
  		}
  		return false;
  	}
docs: Recursively checks children to find p.
  
  @param p
  Paintable to search for
  @return true when the composite contains the passed object