Shooting AI update (4)

Implemented range upgrade (checks distance to enemy edge instead of
center). Implemented possibility to shoot enemy edge even if center is
obstructed (useful for shooting enemies that are partially obstructed by
walls or friendly agents). One last shooting AI update will be done to
clean code and check for calculation mistakes (there are a few mistakes
still).