card selection debugged