ensure memoization of games