C++ implementation of Tic Tac Toe