create a tictactoe game with different functionalities