public void mineClicked(int x, int y) {
        // Fail the grid.
        hasEnded = true;
        hasSucceeded = false;
        
        // Reveal any mines.
        for (int i = 0; i < gridSize; i++) {
            for (int j = 0; j < gridSize; j++) {
                squares[i][j].revealIfMine();
            }
        }
    }