Added an exception check after every gatherpipe write.  Fixes the fifo overflow that occurs in Battalion Wars 2.
Changed the CPEnd loop check to an exact match.
Changed ProcessFifoAllDistance back to how it was.