update Maze