public Rectangle getRectangle(){
		
		if((x1 <= x2) && (y1 <= y2)){
			return new Rectangle(x1, y1, x2 - x1, y2 - y1);
		}
		else if((x1 > x2) && (y1 <= y2)){
			return new Rectangle(x2, y1, x1 - x2, y2 - y1);
			
		}
		else if((x1 <= x2) && (y1 > y2)){
			return new Rectangle(x1, y2, x2 - x1, y1 - y2);
			
		}
		else if((x1 > x2) && (y1 > y2)){
			return new Rectangle(x2, y2, x1 - x2, y1 - y2);
			
		}
		//just in case; this should never happen 
		else {
			return new Rectangle(0,0,0,0);
		}
		
	}