Artificial Intelligence Line of Sight and Range

Another few hundred lines of code for the AI.