Fixed: incorrect subgrid positioning, incorrect option calculation,
stack would get exhausted when running mutually recursive %solve and
%backtrack, replaced it with a loop.