adding compareTo functionality to Card