added collision and intersection functions

:)