cleaned up drawMaze function