Tic Tac Toe implementing dynamic memory management, exception handling, and class friendship.