package chessgame;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class ChessGame extends Application {

	ChessBoard cb;
	GameManager gm;
	
    public static void main(String[] args) {
        Application.launch(args);
    }
    
    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("Shakkipeli");
        
        VBox scene = new VBox();
        cb = ChessBoard.getInstance();
        UtilityBar ub = new UtilityBar();
        
        scene.getChildren().add(ub);
        scene.getChildren().add(cb);
        
        primaryStage.setScene(new Scene(scene, 550, 585));
        primaryStage.setResizable(false);
        primaryStage.show();
    }
}

@@ -15,16 +15,40 @@
 ame;%0D%0A%0D%0A
+import java.io.File;%0D%0A%0D%0A
 import j
@@ -411,28 +411,121 @@
 age) %7B%0D%0A    
-    
+%09File dir = new File(%22sav%22);%0D%0A    %09if (!dir.exists()) %7B%0D%0A    %09%09dir.mkdir();%0D%0A    %09%7D%0D%0A    %09%0D%0A    %09
 primaryStage

Make sav dir