diff --git a/minesweeper.js b/minesweeper.js index 4e1d9b7..1a0a476 100644 --- a/minesweeper.js +++ b/minesweeper.js @@ -402,7 +402,7 @@ function testFlagPositions() { } function tileClickEvent(x, y) { - if (gameOver || victory) + if (gameOver || victoryCheck()) return; uncoverTile(x, y); if (!field[x][y].flagged && field[x][y].tileValue === true) {