private void check()
	{
		this.createData();
			
		int width = 0, height = 0;
		for (int i = 0; i<this.NUMBER_OF_RECTANGLES; i++)
		{
			width += this.data[i].getWidth();
			
			height = Math.max(height, this.data[i].getHeight());
		}
		
		this.update(width, height);
		
		//2
		width = this.maxOfFour(w(0) + w(1) + w(2), w(3), 0, 0);
		
		height = this.maxOfFour(h(1), h(2), h(0), 0) + h(3);
		
		this.update(width, height);
		
		//3
		
		width = this.maxOfFour(w(0) + w(1), w(2), 0, 0) + w(3);
		height = Math.max(Math.max(h(0), h(1)) + h(2), h(3) );
		
		this.update(width, height);
		
		//4
		
		width = w(0) + w(1) + Math.max(w(2), w(3));
		height = this.maxOfFour(h(0), h(1), h(2)+h(3), 0);
		
		this.update(width, height);
		
		height = Math.max(h(0) + h(2), h(1) + h(3));
		
		if (h(2) >= h(1) + h(3))
		{
			width = this.maxOfFour(w(0), w(1) + w(2), w(2) + w(3), 0);
		}
		
		if ((h(2) > h(3)) && (h(2) < h(3) + h(1)))
		{
			width = this.maxOfFour(w(0) + w(1), w(1) + w(2), w(2) + w(3), 0);
		}
		
		if ((h(3) > h(2)) && (h(3) < h(2) + h(0)))
		{
			width = this.maxOfFour(w(0) + w(1), w(0) + w(3), w(2) + w(3), 0);
		}
		
		if (h(3) >= h(0) + h(3))
		{
			width = this.maxOfFour(w(1), w(1) + w(3), w(2) + w(3), 0);
		}		
	

		if (h(2) == h(3))
		{
			width = Math.max(w(2) + w(3), w(0) + w(1));
		}
		
		
		this.update(width, height);
	}