Refactor scoring functions

This refactor removes five different scoring functions by grouping
them into a single function. The single 'score' function pattern
matchers on a given game card.
Remove redundant brackets and $