Minor edit to isLegalForPawn