finished endHand logic, no idea if it works