Dynamic change of the maze