refactors dependency checking of events; events now store location as MP vector; adds collision check in motorcycle phase to discover collision with edges from the wrong side; fixes polygon segment intersection code