Create a Python script using Pygame to build a Tic-Tac-Toe game with AI. Implement the Minimax algorithm to make optimal moves. Read issue #11 (Message for Hacktoberfest Contributors) before contributing.