memoize board output for 0-2 inputs