Inline pinned_pieces() and discovered_check_candidates()