Need help on restarting game!

I am having trouble to look where the problem is.

I was able to create the game board and I will be implementing AI soon.

For now, I need to make it work so that everytime the game is over, it will restart a new one and resume.

However when it reaches to that point, it stops working.

From my what I’ve read, I may not be binding the events correctly, but I am still left puzzled.

Can anyone pinpoint what is wrong with my code?

Awesome, thanks for the tip!
I ended up just modifying my Game.prototype.restart() function as so:

Game.prototype.restart = function(){
  board.initalize();
  /* delete-me game.play() */
}

That’s all it needed :slight_smile:

It’s amazing just one line can impact the project severely :stuck_out_tongue: