Adjust kingRing

This helps in positions where the king is tucked into a corner or after long castling.