public SmashClientHost(Socket socket, SmashServer instance){
		this.setSocket(socket);
		client = this;
		server = instance;
		try {
			out = new DataOutputStream(socket.getOutputStream());
			in = new DataInputStream(socket.getInputStream());
			bufferSize = socket.getReceiveBufferSize();
		} catch (IOException e) {
			e.printStackTrace();
		}
		new Thread(new Runnable(){
			@Override
			public void run() {
				try {
					while(!getSocket().isClosed() && !getSocket().isInputShutdown()){
						String line = in.readUTF();
						if(line!=null)
							server.receive(client, line);
						Thread.yield();
					}
				}
				 catch (IOException e) {
					 return;
				}
			}
		},"Smash It Client Reader ("+socket.getInetAddress().getHostAddress()+")").start();
	}