@Override
	public void run(){
		try {
			serverSocket = new ServerSocket(49618);
		} catch (IOException e) {
			e.printStackTrace();
		}
		for(;;){
			try {
				socket = null;//client socket
				socket = serverSocket.accept();
				client = new Client(socket, new ObjectInputStream(socket.getInputStream()), new ObjectOutputStream(socket.getOutputStream()), main);
				main.addClient(client);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}