play card logic