public void fillIt() {
		while (index != -1) {
			cur = pixels[index];
			--index;
			if (cur.y + 1 < bim.getHeight()
					&& bim.getRGB(cur.x, cur.y + 1) == old) {
				bim.setRGB(cur.x, cur.y + 1, fill);
				++index;
				pixels[index] = new Point(cur.x, cur.y + 1);
			}
			if (cur.y - 1 >= 0 && bim.getRGB(cur.x, cur.y - 1) == old) {
				bim.setRGB(cur.x, cur.y - 1, fill);
				++index;
				pixels[index] = new Point(cur.x, cur.y - 1);
			}
			if (cur.x + 1 < bim.getWidth()
					&& bim.getRGB(cur.x + 1, cur.y) == old) {
				bim.setRGB(cur.x + 1, cur.y, fill);
				++index;
				pixels[index] = new Point(cur.x + 1, cur.y);
			}
			if (cur.x - 1 >= 0 && bim.getRGB(cur.x - 1, cur.y) == old) {
				bim.setRGB(cur.x - 1, cur.y, fill);
				++index;
				pixels[index] = new Point(cur.x - 1, cur.y);
			}
		}
		bim.flush();
	}