Impossible Path Check

Added impossible path flag to detect when it is not possible to path to end point. Returns null if path requested is impossible.