code: public Space merge(Space other) {
  		float minx = Math.min(x, other.x);
  		float miny = Math.min(y, other.y);
  		
  		float newwidth = width+other.width;
  		float newheight = height+other.height;
  		if (x == other.x) {
  			newwidth = width;
  		} else {
  			newheight = height;
  		}
  		return new Space(minx, miny, newwidth, newheight);
  	}
docs: Merge this space with another
  
  @param other The other space to merge with
  @return The result space created by joining the two