returned printmaze for extra assignment implementation