Implemented function to find the attack range of a particular unit