basic logic for is a card playable, with tests