Java program represents an nxn Tic Tac Toe game.