finally got flood fill working. slow but it works.
fixed conflicts