two way almost working. Need to figure out how to get server input without EOF error