public static boolean createSocket(String host, int port) {
		
		// Open socket on given host and port number
		try {
			
			clientSocket = new Socket(host, port);
			input = new BufferedReader(new InputStreamReader(System.in));
			os = new PrintStream(clientSocket.getOutputStream());
			is = new DataInputStream(clientSocket.getInputStream());
			
		} catch (UnknownHostException e) {
			//System.err.println("Don't know about host " + host);
			return false;
		} catch (IOException e) {
			//System.err.println("Couldn't get I/O for the connection to the host "
			//		+ host);
			return false;
		}
		
		// Create PlayerClient thread to read from Server
		if (clientSocket != null && os != null && is != null) {
			try {

				new Thread(new PlayerClient()).start();
				while (!closed) {
					os.println(input.readLine().trim());
				}
				
				os.close();
				is.close();
				clientSocket.close();
			} catch (IOException e) {
				System.err.println("IOException:  " + e);
				return false;
			}
			return true;
		}
		return true;	
	}