Ruby solution for bowling kata