flood fill algorithm
run tasks