king_is_in_check method for prettier code