Partially completed write_the_mazemap.