Implementation of card counter program