A solution to a problem I found online. Determines the score from a bowling score.