Simple Sudoku Plugin Conflict (RESOLVED)

MV 1.6.3 user here, been having this really weird plugin conflict that I'm not quite sure how to address. Before I start I should probably mention that I'm not a programmer so I may be missing something here.

I was testing out the Simple Sudoku plugin recently as I wanted to add an extra minigame for players to try out. When I tested it, I noticed that I consistently couldn't interact with the same 6 cells, thus making solving the puzzle impossible. You can hover over them, but you can't type in a number or call the menu to put a number in which you can for every other cell.

After some trial and error troubleshooting, it looks like the reason for this is the Match Card Lottery plugin, another minigame that I've added. For whatever reason, despite the fact that I hadn't called the plugin scene at all, it's still interfering with the number array of the sudoku plugin. Is there a way around this, like a script that could block the match card lottery from calling itself when i'm trying to run sudoku?

Attached are the following pictures:
1: The respective plugins in my plugin list
2: The sudoku window along with the cells that can't be interacted with (there's lots of 2s to highlight which cells DO work)
3: Inspecting the number array which shows that the value of the nonfunctional cells is displayed as in the console
4: The information that pops up when double clicking the value, not sure if this is valuable info at all.

As far as I'm aware there is no other plugin conflict, these two just seem to share the same array function which makes part of the sudoku puzzle get overwritten.
Might've realized I posted this in the wrong place. Whoops. Is it possible to get this thread moved over to JS/Plugin support so I don't have to post the whole thing again?
Well I think it is because MatchCardLottery pollute all array objects by adding Array.prototype.shuffle.
And MAC_SimpleSudoku incorrectly using for...in statement on arrays so they mistake shuffle for an index.

You can make a small patch for the plugin. Like,

Object.defineProperty(Array.prototype, 'shuffle', {
value: Array.prototype.shuffle,
writable: true,
configurable: true,
enumerable: false
});

Or edit the lottery plugin directly.

Object.defineProperty(Array.prototype, 'shuffle', {
value: function () {
for (var i = this.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = this[i];
this[i] = this[j];
this[j] = temp;
}
},
writable: true,
configurable: true,
enumerable: false
});
Well I think it is because MatchCardLottery pollute all array objects by adding Array.prototype.shuffle.
And MAC_SimpleSudoku incorrectly using for...in statement on arrays so they mistake shuffle for an index.

You can make a small patch for the plugin. Like,

Object.defineProperty(Array.prototype, 'shuffle', {
value: Array.prototype.shuffle,
writable: true,
configurable: true,
enumerable: false
});

Or edit the lottery plugin directly.

Object.defineProperty(Array.prototype, 'shuffle', {
value: function () {
for (var i = this.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = this[i];
this[i] = this[j];
this[j] = temp;
}
},
writable: true,
configurable: true,
enumerable: false
});
I used the patch you listed, works perfectly! Thank you so much!!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/simple-sudoku-plugin-conflict-resolved.176820/