maze generating script