Implemented the print function in TicTacToe, and added a call to it in the main function.