demo code for bowling scoring algo