Objective: Create a simple Tic-Tac-Toe game using Java.
Description:
Implement the game logic to allow two players to take turns placing their marks (X or O) on a 3×3 grid. Display the game board after each move and check for a winning condition. Include error handling to prevent illegal moves and detect a draw. Provide an option to play again after the game ends.