maze creation function