Update MazeSolver.cpp
Fixed code change that was accidentally pulled
Merge pull request #1 from farazoman/patch-1

Update MazeSolver.cpp