There may be a problem with multiple obstacle masks.
Now have working simple maze, could play dirty non-euclidean tricks but probably should save that for twisty little passages in a dark cave.