Moved helper functions that were in maze.js to there own helper.js file