created simple maze solver