Implemented a target selection algorithm for the AI ghost