added the function print to TicTacToe.java. The function prints out the grid