add handling of environmentMaze