public void createJoinGameSocket() {

		new Thread("startClient") {
			public void run() {
				try {
					String temp = null;
					// Create a new socket connection
					clientSocket_ = new Socket(InetAddress.getByName(gameIp_
							.getText()), 3913);

					// Create the data input and output streams
					printOut_ = new PrintWriter(
							clientSocket_.getOutputStream(), true);
					readIn_ = new BufferedReader(new InputStreamReader(
							clientSocket_.getInputStream()));
					
					input_ = new ObjectInputStream(clientSocket_.getInputStream());
					output_ = new ObjectOutputStream(clientSocket_.getOutputStream());
					output_.flush();
					
					// Send the request to the server
					printOut_.println("JOIN");

					// Read a line
					temp = readIn_.readLine();
					System.out.println("Client temp: " + temp);
					if (temp.equals("ACCEPTED")) {
						System.out.println("Accepted");

						namesAndIcons_[1] = readIn_.readLine();
						namesAndIcons_[3] = readIn_.readLine();
					//	System.out.println("Name: " + namesAndIcons_[1]);
					//	System.out.println("Icon: " + namesAndIcons_[3]);
						
						connected_ = "CONNECTED";
						
						while (networkedController_ == null) {
						//	System.out.println("Sleeping");
							try {
								Thread.sleep(100);
							} catch (InterruptedException e) {
								e.printStackTrace();
							}
						}
					//	System.out.println("Calling clientListen()");
						networkedController_.clientListen(readIn_, printOut_, input_, output_);
						
					} else
						System.out.println("Connect failed");

				} catch (ConnectException e) {
					e.printStackTrace();
					try {
						clientSocket_.close();
						printOut_.close();
						readIn_.close();
						output_.close();
						input_.close();
					} catch (Exception ex) {
						ex.printStackTrace();
					}

				} catch (UnknownHostException e) {
					System.out.println("Cannot find host");
					cannotFindHost_.setVisible(true);
					connected_ = "NO";
					
				} catch (SocketException e) {
					// The server has quit - handle appropriately
					System.out.println("Server has quit game");
				}catch (IOException e) {
					e.printStackTrace();
					unsuccessfulConnection_.setVisible(true);
					connected_ = "NO";
					
				} 
			}
		}.start();

	}