public static Bitmap[][] recolor(Bitmap[][] bitmaps, int a0, int b0, int a1, int b1) {
		for (int x = 0; x < bitmaps.length; x++) {
			for (int y = 0; y < bitmaps[x].length; y++) {
				Bitmap bm = bitmaps[x][y];
				for (int i = 0; i < bm.pixels.length; i++) {
					if (bm.pixels[i] == a0) bm.pixels[i] = b0;
					if (bm.pixels[i] == a1) bm.pixels[i] = b1;
				}
			}
		}
		return bitmaps;
	}