maze: made the print function a bit simpler.