I just need to search for the first colliding element and then stop the search, how can I achieve this?