Special case for 2 paths left in the matrix

It's still not working for me yet, but I made a special case for when
there supposed to be one path that causes a premature cycle and one path
that is the one we need.