@Override
	protected Integer doInBackground() throws Exception
	{
		String line;
		long lastTs = 0;

		try {
			System.out.println("Player waiting for client");
			clientSocket = serverSocket.accept();
			System.out.println("Player client connected");
			PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
			while ((line = bufferedReader.readLine()) != null) {
				String[] tokens = line.split(" ", 2);
				long tS = Integer.parseInt(tokens[0]);
				System.out.println(tokens[1]);
				out.println(tokens[1]);
				Thread.sleep((int) ((tS - lastTs) / 10));
				lastTs = tS;
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}