Fixed, so sorry about that! It was a weird memory allocation issue that only occurred when playing the html on the itch page itself. I updated it and just tested playing the whole game on the itch page undoing frequently, then undid all my moves from the end of the game and it worked fine.