public static List<DisplayMode> getDisplayModes(){
        List<DisplayMode> returnableModes = new ArrayList<>();
        try {
            DisplayMode[] modes = Display.getAvailableDisplayModes();

            for(DisplayMode mode :modes){
                if(mode.getFrequency()==60&& mode.getBitsPerPixel()==32){
                    returnableModes.add(mode);
                }

            }
        } catch (LWJGLException e) {
            Console.log("Could not get display modes");
        }

        return returnableModes;
    }