Need help with tic-tac-toe game

Hello Everyone!,
hope all is well. i just wrap up the Tic-Tac-Toe app, I notice these messages in my console when I was simulating the play with friend on my iPhone and simulated on my laptop. The issue I am having is that if the player that is on the actual iphone gets three in a row in a x or o won’t win. only simulator phone on laptop can win. i have check my code to see if i miss something, and i could not find anything. if anyone knows how to fix this?