Tic Tac Toe question

Tic Tac Toe question
0

#1

Hi I have problem with tic tac toe. When I crate a fork situation computer does 2 moves at once, even though I did it in if / if else function. Here is my codepen link:

Comp turn is within compTurn() and as() function.