Designing an AI to play Gin Rummy