Working version without card rank