public void mergeTerrainAndBackground(int x,int y,int width,int height){
		int[] terrainPixels = getPixels();

		int realY = y * getWidth();
		for (int i = 0; i < width; i++) {
			for (int j = 0; j < width; j++) {
				int adr = realY + x + i * getWidth() + j;

				if ((j + x) > getWidth() | (j + x) < 0 || (y + i) < 0 || adr >= getPixels().length)
					continue;

				
				if (terrainPixels[adr] == -1) {
					screen[adr] =backGround[adr];

				}
			}}
	}