public static void recolor(BufferedImage img, int oldcolor, int newcolor){
		for(int i = 0; i < img.getWidth(); i++){ // loops through the image's width
			for(int i2 = 0; i2 < img.getHeight(); i2++){ // loops through the image's height
				if(img.getRGB(i, i2) == oldcolor){
					img.setRGB(i, i2, newcolor);
				}
			}
		}
	}