I have a snake game in JS and I’m making a grid size changer, when the gridSize variable is changed there is a rendering issue and it glitches out.
I used an alert to show if the variable was correct and it was and I was unable to fix any issues on my own.