Wrote maze randimization function