c++ go maze source code