Checks for collisions