This is a visualization of recursion. The algorithm is searching for all possible paths from the top-left to the bottom-right corner of the grid.