Advanced tic-tac-toe game with offline mode