takeUforward
Flood fill algorithm - TUF+