created a method for determining unit collisions