Generates a maze and seeking route between two random points.