Bowling game scoring algorithm