Fixing flood method

Now NOT incrementing the value of dist before it's passed to itself
recursively