Implement simple tictactoe AI