added fast caching to tictactoe