Update TCPServer.java

added threading