Error in code, WA

I can’t seem to find any error in my code/logic. Could you please help me with it?
Here is my code: http://p.ip.fi/C-tW

@wandan23
You are sending a copy of the maze in each solve function call. Pass it by reference to get the correct solution.