I just added one simple if statement to Bens code as it was before this Lecture. It seems to pass all tests.
Let me know if you find another case where it fails.
// New if statement to pass the new tests
if (bowl == 20 && pins<10 && bowls[19-1]==10 ) {
bowl += 1;
return Action.Tidy;
}
// Begining of the code from Ben
if (bowl >= 19 && Bowl21Awarded ()) {
bowl += 1;
return Action.Reset;
} else if (bowl == 20 && !Bowl21Awarded ()) {
return Action.EndGame;
}