Maze drawing code.