Modifying ClientThread to use standard output and intput instead of a socket. Problem: we cannot determine if there is something to read in stdin without blocking the program.