toy implementation of tictactoe