int percent = ((won * 100) / played);
String line = message + "\nPlayed: " + played + " Won: " + won + " Percent: " + percent + "%" + "\nBest Time: " + bestTime + "\nPlay again?";
int response = JOptionPane.showConfirmDialog(frame, line, message, JOptionPane.YES_NO_OPTION);
options.write(NUM_MINES, FIELD_X, FIELD_Y, played, won, bestTime);
if (response == 0) {
mines = new Minefield(FIELD_X, FIELD_Y, NUM_MINES, MINE_SIZE, MINE_SIZE, BUFFER, EDGE, screen);
gameOver = false;
clock.reset();
firstClick = false;
score = NUM_MINES;
}