Tic Tac Toe aiPlayer dosen't make a move

I have tried to use the Minimax algorithm in my tic tac toe game but when the human player makes a move the computer player doesen’t do anything. Can someone look to see if I’am doing something wrong or should I implement the algorithm in another way because I use a variant of Minimax called Negamax. Please help! Here

use the browser console to spot the errors from developers tools,
TypeError: input[winCombos] is undefined

1 Like

I’m stuck on that, I don’t know how to solve it. Can you please help?