fixes some bugs in segment intersection checking and expansion; adds boolean intersection code, albeit still very buggy; motorcycle opposing wavefront connections for the wavefront propagation phase refactored into two-phase approach to account for cyclic collions; fixes some math in spatial hash that was wrong for negative coordinates; adds generation of a clipping rect to layer view; clipping rect can now be used to slice only a part of a layer for debugging purposes