Digital pipe or flute

Sorry, I'm a little silly. Right now I have a direct cable from the thumbtack to the pin, and the ground connection happens when I touch the thumbtack with my fingers. Your advice means that I have to wire the pins to ground in a different way?