write maze using dsl, clean up some other stuff