add loop with break

@js850, do you think this would be a way to then implement an overlap check (or other exits from the loop)?