Splitted functionality from assist tile detection to heal and trade tile detection.
Added distance detection to attackable unit tile detection.
Merge remote-tracking branch 'upstream/master'
Merging and cleaning up main.js