Scale the king safety penalty by the distance from the pawn