create tree also in reversi and tic tac toe