As an idea of how I might do it - Those hand types are pre-defined - So as soon as you have detected your combination set a value to that player based on that combination.
so pair = 1, two pair = 2,...