extract collision detection of other units into method