Clean up by adding a helper function: isFullHouse().