public void saveBlocks() {
		solidBlocks.clear();
		flatBlocks.clear();
		for(int x = 0; x<bi.getWidth(); x++) {
			for(int y = 0; y<bi.getHeight(); y++) {
				if(bi.getRGB(x, y) == Color.WHITE.getRGB())
					solidBlocks.add(new Point(x, y));
				else if(bi.getRGB(x, y) == Color.RED.getRGB())
					flatBlocks.add(new Point(x, y));
			}
		}
	}