When pursuing player, avoid segment_none instead of segment 1

Avoiding segment 1 makes no sense, and appears to be a bug.
Simplify test for exit tunnel with wrong final child
Reduce sprintf usage in kmatrix