A crib engine to play the card game crib with AI and a card counter