I work right now on a solution for my other problem and found this issue in your code too. Wright me if you want to see my solution. I can come with a full solution for the hand evaluator ;)