Begin implementation for checking for intersection