tic-tac-toe hash