added maze random algorithm