public void run(){
        while(!Display.isCloseRequested() && !Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)){
            if(Display.isVisible()) {
                this.processKeyboard();
                this.processMouse();
                this.update(Time.getDelta());
                this.render();
            }
            else {
                if(Display.isDirty()) {
                    this.render();
                }
                
                try {
                    Thread.sleep(100);
                }
                catch(InterruptedException ex) {}
            }
            Display.update();
            Display.sync(Config.WINDOW_FPS);
        }
        this.destroy();
    }