finished logic to create an ai opponent

found possible solution to minimax algorithm