The bowling game kata in scala play