find maze path with backtrack