TicTacToe ruby bare-bone, with tree-based artificial intelligence