public static void run(Service s, int w, int h) {
		
		window = new Window(w, h);
		ServiceMan.runService("main", s);
		
		running = true;
		
		start();
		while (running && !Display.isCloseRequested()) {
			loop();
		}
		end();
		
	}