bowling scoring implemented in Dart