Add a toggleSelected method for Card objects