Avoid modify maze matrix externally