Replaced threshold value to use Hand.score method and some various cleanup