Flood fill algorithm update.
Still slow, needs improvement. (Minimize number of number of checks).