private void askForNewGame() {
		int hor = 0;
		int ver = 0;
		while (hor < 10 || ver < 10) {
			GridSizeDialog dialog = new GridSizeDialog();
			int answer = dialog.show();
			if (answer == JOptionPane.CANCEL_OPTION) {
				System.exit(0);
			} else if (answer == JOptionPane.OK_OPTION) {
				try {
					hor = dialog.getWidth();
					ver = dialog.getHeight();
					this.objectTron = new Game(new RandomGridFactory(hor, ver));
				} catch (IllegalArgumentException ex) {
					JOptionPane.showMessageDialog(null,
							"Width and height have to be 10 or greater.",
							"Error", JOptionPane.ERROR_MESSAGE);
				}
			}
		}
	}