A basic C++ program to find a path through a maze