public ConnectionHandler(Socket sock) throws IOException {
        this.socket = sock;
        out = new PrintWriter(socket.getOutputStream(), true);
        in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    }