public void init(Client c) {
		try {
			client = new Socket(host, port);
			System.out.println("Socket Initialized");
			
			socketOut = new BufferedOutputStream(client.getOutputStream()); //When sending things from client to the server
			socketWriter = new OutputStreamWriter(socketOut);
			
			socketIn = new BufferedInputStream(client.getInputStream()); //Receives things from the server and sends it to the clientS
			socketReader = new InputStreamReader(socketIn); //Does the actual reading
			//socketScanner = new Scanner(socketIn);
			
			clientInput = new Scanner(System.in);
			
			if(client != null && socketWriter != null && socketIn != null && socketScanner != null && clientInput != null) { //If everything is initialized, continue
				try {
					new Thread(c).start(); //Starts the read for reading from the server
					
					while(!closed) {
						String in = clientInput.next().trim();
						socketWriter.write(in); //Reads input from the client
						socketWriter.flush();
						System.out.println(in);
					}
					
					//Will only be reached after the above while loop ends(when closed == true)
					
					System.out.println("stuff");
					socketWriter.close();
					socketIn.close();
					clientInput.close();
					socketScanner.close();
					client.close();
				} catch(IOException e) {
					e.printStackTrace();
				}
			}
			
		} catch(Exception e) {
			e.printStackTrace();
		}
	}