I am trying to add a reset button to this simple tic tac toe game and I can’t get it to work [closed]

I’m going through the odin project right now and am almost done with the tic tac toe project but I’m stuck on making the reset button. It will get rid of the x’s and o’s from the board array and on the screen but you cannot play the game any more after. Here is a codepen for my project: https://codepen.io/Jibbberish/pen/BagdVey

const reset = document.querySelector(".reset");
reset.addEventListener("click", () => {
    makeGameboard.gameboard = [null, null, null, null, null, null, null, null, null];
    displayController();
    turnCounter = 1;
});

I have tried changing the location of the reset function but that didn’t work, adding a variable that the button changes to false to bypass checking if the game is over in some parts and that didn’t do anything, and as I’ve been going at this for around an hour, I’ve tried a couple other things I can’t think of off the top of my head. Thanks for your help!