public void initialiseGrid(Grid gameGrid) {
        grid.getChildren().clear();
        int size = gameGrid.getGridSize();
        for (int y = 0; y < size; y++) {
            for (int x = 0; x < size; x++) {
                ImageView iv = gameGrid.getSquare(x, y).getImageView();
                grid.getChildren().add(iv);
                GridPane.setRowIndex(iv, x);
                GridPane.setColumnIndex(iv, y);
            }
        }
        
        scene.getWindow().setWidth(16*size + windowExtraWidth);
        scene.getWindow().setHeight(16*size + menuBarHeight + windowExtraHeight);
    }