given a formatted string, scores a bowling game