I was driving my 05 grand prix the other day when I came up to a stop sign, and my car suddenly didn't want to move in gear. I limped it across the street and shut it off, and after a few minutes I started it up, and drove it for a couple miles before the same thing happened at the next stop sign. Every time it happens It only starts moving again once I shut it off and start it back up.

I'm looking for opinions and suggestions before I start tearing into it as to what it could be. It has almost 170,000 on the trans, so I'm almost sure it is due for a rebuild.