play cards functionality