break infinite loop if grid is completely open