Improve range checking for card selection