Various fixes in pawn movement calculation.