Inital maze generation code.