created maze solver