Tested Recursive Function

Doesn't Work - Stack Overflow
I think I know the problem though
I don't have a check for back and forth neighbor checks