Bowling kata in Scala