Further along, but still buggy.
Too many results are passed back, should only be the highest hand type.
Also, loop doesn't break properly, no doubt since we removed for loop.