example implementation of the game tic-tac-toe