updating maze