@Override
	public void run() {
		try (ServerSocket server = new ServerSocket(6666);) {
			while (true) {
				try {
					Socket socket = server.accept();
					OutgoingThread outThread = new OutgoingThread(socket.getOutputStream());
					new Thread(outThread).start();
					new Thread(new IncomingThread(socket.getInputStream(),warehouse,outThread)).start();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		} catch (IOException e1) {																														
			e1.printStackTrace();
		}
	}