Recursion based maze