You can only breed back to the original stock, the unrelated f2 and f3 generation. If male A and female B have babies, and male C and female D have babies, the females from AB can mate with C and the males from AB can mate with D and visa versa, the females from CD can mate with A and the males...