same patch as king_safety_change from new master
Merge pull request #1 from uriblass/king_safety_change1

Same patch as king_safety_change from new master