printMaze function added. Main modified accordingly.