Solution to a bowling score computer problem