fix line of sight algorith,