public static void main(String[] args) {
		
		// The default port	

		int port_number=20000;
		String host="localhost";

		if (args.length < 2)
		{
			System.out.println("Usage: java MultiThreadChatClient  \n"+
					"Now using host="+host+", port_number="+port_number);
		} else {
			host=args[0];
			port_number=Integer.valueOf(args[1]).intValue();
		}
		// Initialization section:
		// Try to open a socket on a given host and port
		// Try to open input and output streams
		try {
			clientSocket = new Socket(host, port_number);
			//inputLine = new BufferedReader(new InputStreamReader(System.in));
			oos = new ObjectOutputStream(clientSocket.getOutputStream());
			ois = new ObjectInputStream(clientSocket.getInputStream());
		} catch (UnknownHostException e) {
			System.err.println("Don't know about host "+host);
		} catch (IOException e) {
			System.err.println("Couldn't get I/O for the connection to the host "+host);
		}

		// If everything has been initialized then we want to write some data
		// to the socket we have opened a connection to on port port_number 

		if (clientSocket != null && oos != null && ois != null) {
			
			
			try {
				
				playerId = ois.readInt();
				System.out.println(playerId);
				// Create a thread to read from the server
				Graphics.GUI();


				new Thread(new SpaceAlertClient()).start();
				

				while (!closed) {
					try {
						Thread.sleep(100);
					} catch (Exception e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
					//oos.println(inputLine.readLine()); 
				}

				// Clean up:
				// close the output stream
				// close the input stream
				// close the socket

				oos.close();
				ois.close();
				clientSocket.close();   
			} catch (IOException e) {
				System.err.println("IOException:  " + e);
				e.printStackTrace();
			}
		}
	}