Creating an unbeatable tic-tac-toe AI using Minimax