created SocketThread class

moved the code after serverSocket.accept() to its own thread in the
SocketThread class