Tic-tac-toe game with computer player using artificial intelligence