package edu.stuy.starlorn;
import java.io.IOException;
import edu.stuy.starlorn.graphics.Screen;
import edu.stuy.starlorn.menu.Menu;
import edu.stuy.starlorn.util.Preferences;

public class Starlorn {

    public static void main(String[] args) {
        Screen screen = new Screen();
        Menu menu = new Menu(screen);

        screen.setup();
        Preferences.load(screen.getWidth(), screen.getHeight());
        menu.setup();
        screen.addHook(menu);
        screen.run();
        System.exit(0);
    }
}

@@ -476,24 +476,52 @@
 reen.run();%0A
+        Preferences.save();%0A
         Syst

Save preferences before exiting the game