final commit for bowling game code with test cases

Please refactor the attempts so that we do not need to pass an array each time.