Deciphering the magic of poker