Maze Path for a 3*3 matrix

what is the problem with this code ?
we are required to find maze path for this

code is in the link below