implemented point detection and assignment code. need to implement localization at this point