Object-finding algorithm in code. TODO: object direction detection, path resolution, rotational compensation, everything else