Adding selected class to selected cards.