Simple Tic-Tac-Toe game on Java using Swing