public void kas_valjun(final Stage peaLava){
		// luuakse teine lava
		final Stage kusimus = new Stage();
		// kysimuse ja kahe nupu loomine
		Label label = new Label("Kas tahad kinni panna?");
		Button okButton = new Button("Jah");
		Button cancelButton = new Button("Ei");

		// syndmuse lisamine nupule Jah
		okButton.setOnAction(new EventHandler<ActionEvent>() {
			public void handle(ActionEvent event) {
				kusimus.hide();
			}
		});

		// syndmuse lisamine nupule Ei
		cancelButton.setOnAction(new EventHandler<ActionEvent>() {
			public void handle(ActionEvent event) {
				peaLava.show();
				kusimus.hide();
			}
		});

		// nuppude grupeerimine
		FlowPane pane = new FlowPane(10, 10);
		pane.setAlignment(Pos.CENTER);
		pane.getChildren().addAll(okButton, cancelButton);

		// kysimuse ja nuppude gruppi paigutamine
		VBox vBox = new VBox(10);
		vBox.setAlignment(Pos.CENTER);
		vBox.getChildren().addAll(label, pane);

		// stseeni loomine ja n2itamine
		Scene stseen2 = new Scene(vBox);

		stseen2.setOnKeyPressed(new EventHandler<KeyEvent>() {
			public void handle(KeyEvent event) {
				switch (event.getCode()) {
				case Q:
				case Y:
				case J:
				case ENTER:
					System.exit(0);
					return;

				case E:
				case N:
					peaLava.show();
					kusimus.hide();
					break;

				default:
					break;
				}
			}
		});

		kusimus.setScene(stseen2);
		kusimus.show();
	}