AI Targeting Completed

Still need to test it out, but it should work according to the gist
here:
https://gist.github.com/Xemerau/8db9755fd95ccfc270c9

I somehow managed to procrastinate implementing this for 6 hours.