final commit for bowling game code with test cases

You should not be using these magic numbers 0,1,2 etc in your code to flag some business condition. Replace with variable or enum or best.. remove completely if possible.