added memoization
removed memoized. added replay-game-step. added profile macro