update maze