Added comparator functions for Card