Added weight update to tictactoe undo