Fix bug where wrong input could result in playing a random card.