Simplify unstoppable pawns code

This contains remove of some loops, using backmost_piece, std::min and SquareBB.

No functional change