classifies cards