public WumplusMain(boolean fullscreen) {
        super("Adventure Kitteh!!! Wumplus World!!!");
        screenX = 680;
        screenY = 576;
        this.setSize(800, 700);

        // set up resolution change mode

        this.addWindowListener(this);
        this.addWindowFocusListener(this);
        this.addComponentListener(this);

        grDev = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(); // obtains your graphics device
        oldDisplay = grDev.getDisplayMode(); // retain original DisplayMode to revert back to when program finishes.

        // setup the game for full-screen if requested.
        if (fullscreen) {
            log.d("Trying to start program in Fullscreen mode.");

            if (grDev.isFullScreenSupported()) // makes sure fullscreen is supported before doing anything.
            {
                log.d("FullScreen is supported");
                this.setUndecorated(true);
                DisplayMode resChangeMode = new DisplayMode(800, 600, 32, DisplayMode.REFRESH_RATE_UNKNOWN); // create new DisplayMode with different resolution.

                try {
                    grDev.setFullScreenWindow(this); // set fullscreen mode on. Otherwise this won't work
                    grDev.setDisplayMode(resChangeMode); // change DisplayMode to our new resolution.
                    log.d("Change resolution: Success!");
                } catch (Exception e) {
                    log.d("Change resolution: FAIL! " + e);
                    fullscreen = false;
                }
            }

            this.setExtendedState(MAXIMIZED_BOTH);
        }

        // instantiate main window panel

        screenP = new MasterPanel(this);

        bgFraming = new JPanel();

        // set background panel properties

        bgFraming.setBackground(Color.black);
        this.add(bgFraming);

        bgFraming.setLayout(null);

        // set screen panel properties

        bgFraming.add(screenP);
        screenP.setSize(screenX, screenY);

        // finishing touches on Game window

        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
        this.setAlwaysOnTop(false);

        this.recenterScreen();
        try {
            screenP.requestFocusInWindow();
        } catch (Exception e) {
        }

        log.d("Game Window successfully created!!!");
    }