Tenpin bowling calculator written in Ruby