unexpected twists

When you write, do you have a "map" on how the story will go? If you do, has something happened to make you change that, almost like the story had a mind of it's own? I have, it sometimes it makes me wonder if i have my stories, or if they have me.....