Opponent AI is realized by simply creating a special method that can return three positions that wont crush the table and then randomly choosing from them. There is additional random check on top of that would defined if the move would be calculated or will be completely random. This provides possibility to define in percentage how precise the enemy AI would be.