Remember collision from previous grid element and repeats
Even if the previous collision had a distance larger than t2, it might have gotten relevant in the next grid element/repeat. This fixes some leaky walls, which are exactly at the edge of the grid elements and repeats.