Adds helper functions to condense repeated code Maze.cpp
Adds helper functions to condense repeated code Maze.h