Added no card repetition logic