Add memoization of scoreBoard.

Here is an example of how to add memoization of the `scoreBoard` function.

Note: I haven't actually tested this but it does compile.