brute force method almost finished

Iterate through the array of points every time there is  a new opening.
The last iteration cannot be completed before the program stops.