correct avl and updated maze