Tic-Tac-Toe minimax algorithm implementation in Octave