public static void main(String[] args) throws FileNotFoundException
	{
		if(args.length == 0)
		{
			args = new String[] { "client" };
		}
		
		switch(args[0])
		{
			case "client":
				GUI c = new GUI();
				if(args.length == 2)
				{
					c.setServerAddress(args[1]);
				}
			break;
			case "server":
				Server s = new Server();
				if(args.length == 2)
				{
					s.setNextMap(new File(args[1]));
				}
				s.start();
			break;
			case "mapeditor":
				new MapEditor();
			break;
			default:
				throw new IllegalArgumentException("unknown command " + args[0]);
		}
		
	}