private int getCellSize(int x, int y) {
		int width = 0, height = 0;
		
		for(int w= x; w < Img.getWidth(); w++){
			int c = Img.getRGB(w, y);
			
			if(!Color.isDark(c)) {
				width++;
			} else break;
			
		}
		
		for(int w= x; w >  0; w--){
			int c = Img.getRGB(w, y);
			
			if(!Color.isDark(c)) {
				width++;
			} else break;
			
		}
		
		for(int h = y; h < Img.getHeight(); h++){
			int c = Img.getRGB(x, h);
			
			if(!Color.isDark(c)) {
				height++;
			} else break;
		}
		
		for(int h= y; h > 0; h--){
			int c = Img.getRGB(x, h);
			
			if(!Color.isGray(c)) {
				height++;
			} else break;
		}
		
		return (width+height)/2;
	}