A tic-tac-toe-playing agent demonstrating the application of adversarial search strategies in ensuring optimal gameplay