Don't carry the LOS flag in the open list, set it in the grid. This means if we visit a node from a non-LOS direction, it can still have LOS if its neighbour in the correct direction has LOS.