public static void createWindow(int width, int height, String title)
    {
        Display.setTitle(title);
        try
        {
            Display.setDisplayMode(new DisplayMode(width, height));
            Display.create();
            Keyboard.create();
            Mouse.create();
            refreshRate = Display.getDisplayMode().getFrequency();
            System.out.println(Display.getDisplayMode());
        }
        catch (LWJGLException e)
        {
            e.printStackTrace();
        }
    }