flood fill algo in Mazenew