Actually, u don't collide with the pins, likely the second string u put down is slightly higher, should be slightly lower.
Damn, 40 minutes?! Thats more time than anyone else, did u manage to finish it?
Thanks a bunch :D