Create BaseCode.cpp

All of the code included in v1.1 of Maze.