private void screenUpdate() {

        Graphics2D g;
        try {
            if(isFullscreen) {
                BufferStrategy bs = myWindow.getBufferStrategy();
                g = (Graphics2D)bs.getDrawGraphics();
                gameRender(g);
                g.dispose();

                if(!bufferStrategy.contentsLost()) bufferStrategy.show();
                else System.out.println("Content Lost!");

            } else {
                g = (Graphics2D)myWindow.getGraphics();
                if((g != null) && (dbImage != null)) {
                    g.drawImage(dbImage, 0, 0, null);
                }
                Toolkit.getDefaultToolkit().sync();
                g.dispose();
            }
            
            Toolkit.getDefaultToolkit().sync();
        } catch(Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }