Ruby program to calculate bowling game scores