update tictactoe code