Well, it may be legal, but I don't know. Seems like counting cards in blackjack would be perfectly legal. I think its a grey area and he won through manipulation.