Added a functional version of bowling scoring.