private static boolean fits(long w, long h, long x, long y) {
		if (h > w) {
			long temp = w;
			w = h;
			h = temp;
		}
		if (y > x) {
			long temp = x;
			x = y;
			y = temp;
		}
		//Y og H er minste lizm
		if (w == h) {
			if (y%2 == 0)
				return y>=w;
			else
				return y-1>=w || (y>=w && x-1>=w);
		} else {
			//hyde p strste kvadrat = y
			long i = y-w;
			if (y==x) 
				return h<=y+i -(h%2==0?0:1);
			else
				return h<=y+i;
		}
	}