public static void main(String args[]) {
		
		File f = new File("config");
		FileReader fr = null;
		try {
			fr = new FileReader(f);
		} catch (FileNotFoundException e2) {
			e2.printStackTrace();
		}
		BufferedReader br = new BufferedReader(fr);

		String host = "";
		String port = "";
		try {
			host = br.readLine();
			port = br.readLine();
		} catch (IOException e2) {
			// TODO Auto-generated catch block
			e2.printStackTrace();
		}

		try {

			Client client = new Client("client", host, port);

			agc = null;
			try {
				agc = new AppGameContainer(client);
			} catch (SlickException e1) {
				e1.printStackTrace();
			}
			try {
				agc.setDisplayMode(1024, 768, false);
			} catch (SlickException e) {
			}
			agc.setTargetFrameRate(60);
			agc.setAlwaysRender(true);
			try {
				agc.start();
			} catch (SlickException e) {
				e.printStackTrace();
			}
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}

	}