Modified the flood fill, still not working yet