Tic-Tac-Toe game implementing dynamic memory management and exception handling.