calculates the score of a bowling game