Help needed | Tic tac toe game | Unable wait the code until the game result is announced

Help needed | Tic tac toe game | Unable wait the code until the game result is announced
0.0 0

#1

http://codepen.io/bhanoday10307/full/BWPOzB/

everything is working except that announcing the game win is running super fast and could not be noticed by the user but it can be noticed when traced by creating a breakpoint in the chrome developer tools.

If you want a quick understanding of the problem please

  1. play it once with a breakpoint in the announceWinner() method that is being called by the method checkIfWon().
  2. play it without any breakpoint.
    feel the difference and help me with my code.