TicTacToe class with methods added