public static DisplayMode getPreferredDisplay() throws LWJGLException {

        DisplayMode chosen = Display.getDisplayMode();
        DisplayMode[] modes = Display.getAvailableDisplayModes();

        for(DisplayMode display : modes){
            if(isDisplayModeBetter(chosen, display) == true){
                chosen = display;
            }
        }

        return chosen;

    }