Maze Solver coded in C