Update maze.cpp

added a winning function and tried to add monster function