Refactored ServerThread to be ReceiverThread and ClientThread to be SenderThread