is_in_range now a function.+autobattle, try_2