king in_check? function added