line of sight logic working