tree recursion + maze original