Added logic to prevent unreachable (path == 1) nodes
Added logic to prevent unreachable (path == 1) nodes

PSU-CAPSTONE-BEEEEEES/Tellagence,PSU-CAPSTONE-BEEEEEES/Tellagence,PSU-CAPSTONE-BEEEEEES/Tellagence,PSU-CAPSTONE-BEEEEEES/Tellagence