This is my rope joint snake code