fixing black card selection logic