Changed door open algorithim

I found what was causing all the doors to open, but it took
significantly more time to fix than I thought.  Also added some chunk
stuff.