changed lineOfSight to navgraph