Added function for comparing card values