Unfortunately, that was sort of the problem... the monorails do have a detection system that can take control of the trains and make it stop if another gets too close, but when the trains are being switched on tracks this system is overridden which allowed Pink to hit Purple.
Detection systems and overrides can't be the end all to be all, there have to be allowances to stop the computer from taking over the train like when switching tracks or if the driver has to make a small adjustment like when the train overshot the station platform by a bit. That's the problem with computers, sometimes they are 'too perfect' and can't make judgment calls when something outside the norm happens.