Made target finder somewhat random.
Fixed few bugs.