Calculate gain and score of poker