Implemented pathfinding for moveToAttack to engage at maximum attack range.
Added basic tests for attacking units and buildings.