unit attack using my own pathfinding system