getNearestEnemyTank now only looks for active tanks