Fixed bugs and sorting of card with best hand in mind