public boolean distance(int y, int x, int[][] image){
		int red = (image[y][x] >> 16) & 0xff;
		int blue = (image[y][x] >> 8) & 0xff;
		int green = (image[y][x]) & 0xff;

		double dfb = Math.sqrt(Math.pow(red - 0, 2) + Math.pow(green - 0, 2) + Math.pow(blue - 0, 2));
		double dfw = Math.sqrt(Math.pow(red - 255, 2) + Math.pow(green - 255, 2) + Math.pow(blue - 255, 2));

		if(dfb > dfw){
			return false;
		}
		else{
			return true;
		}
	}