flooding route done, tested
some bugs fixed