random maze generation with modified prims algorithm