Rewrite backward pawn detection

Use the new backmost_sq() instead of a loop.

No functional change.