Add memoization of scoreBoard.