commented existing code and started incorporating scan data to find distance to target