Adding first type of collision detection