logic fixes

fixed logic errors in determining winner and number of cards in the deck