Basic logic for calculating hand sums.