Update getValue function

Added if else statements to differentiate between different cards.