Implemented functions to determine if a card can be played by a player.