public static void main(String args[])
	{
		try
		{
	
			loc = System.getProperty("java.class.path");

		}
		catch(Exception e){}


		try
		{
			loc = loc.substring(0, loc.lastIndexOf(".jar"));
			loc = loc + "/";

		}
		catch(Exception e){}

		try
		{
			if(loc.endsWith("bin"))
			{
				loc = loc.substring(0, loc.lastIndexOf("bin"));
			}
		}
		catch(Exception e){}
		options = OptionsIO.load();
		main = new Main();
		main.setPreferredSize(size);
		main.pack();
		main.setTitle(name + " " + version);
		main.setResizable(false);
		main.setLocationRelativeTo(null);
		main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		
		soundPlayer = new SoundPlayer();
		renderer = new Rendering();
		modeSelection = new ModeSelector();
		main.setVisible(true);
		main.start();


	}