public void renderArrey(int xp, int yp, int WIDTH, int[] arrey) {
		xp -= Xoff;
		yp -= Yoff;
		for (int y = 0; y < WIDTH; y++) {
			int ya = y + yp;
			for (int x = 0; x < WIDTH; x++) {
				int xa = x + xp;
				if (xa < -WIDTH || xa >= width || ya < 0 || ya >= height) break;
				if (xa < 0) xa = 0;

				try {
					int pix = arrey[x + y * WIDTH];
					int place = xa + ya * width;
					pixels[place] = pix;
				} catch (ArrayIndexOutOfBoundsException e) {
					break;
				}

			}

		}
	}