correct adjacent block recognition: taking account both primary and secondary swapped blocks