private void openWindow() {
        WindowCreator creator = new WindowCreator(gui.getFrame());
        dialog = creator.createNewJDialog("Simulation starter", 700, 800);

        container = dialog.getLayeredPane();

        try {
            drawAllCards();
        } catch (IOException ex) {
            PicturesNotFoundErrorWindow errorWindow = new PicturesNotFoundErrorWindow(dialog, gui);
            errorWindow.create();
            return;
        }
        createAvailableCardsLabel();

        createMainButtons();

        createGraphicsForStartingHands();

        if (gameType.isCommunityCardGame()) {
            createGraphicsForBoard();
        }

        if (isRerun) {
            drawInitialCardsToStartingHands();
            if (gameType.isCommunityCardGame()) {
                drawInitialCardsToBoard();
            }
        }
    }