Southern Israel (CNN) Israeli soldiers were stunned when they found the Hamas tunnel leading from Gaza toward an Israeli kibbutz.

They knew that Palestinian militants had been digging tunnels for years, but they didn't expect anything so elaborate.

The tunnel's walls, floors, and ceiling were made of concrete, and the tunnel was wired for electricity and communication.

It was wide enough and tall enough to move quickly; a person could run with weapons, or even ride a motorcycle.

"This tunnel is perfectly safe to be inside, which means that it is a very good building procedure," Israel Defense Forces Capt. Daniel Elbo says. And he would know -- Israeli military engineers briefed him after they checked it out.

During the 2014 Gaza war, Hamas militants launched surprise attacks from tunnels that crossed under Israel's security fence and into Israel

Dozens destroyed

Identifying and destroying the tunnels became a major goal of the war for the IDF, which found many tunnels that were more than a mile long and 60 feet deep. By war's end, the IDF had destroyed 32 tunnels.

Now, along the Gaza border, the Israeli military is testing a new tunnel detection system a year after the end of the Gaza war.

Israel's intelligence officials say Hamas is building new tunnels, and finding them has become a top priority for the IDF.

"Just like a game of hide-and-seek," says Maj. Nir Peled. "We manage to find one tunnel, so we know that Hamas are digging the next tunnel in a different way, in a different depth."

Israeli intelligence knew of the existence of tunnels years before the Gaza war, says Peled, but still had trouble pinpointing them.

The tunnel stretching from Khan Yunis toward Kibbutz Ein Hashlosha -- a distance of more than 2 miles -- was found in the months before the war. Israel estimates that it had been under construction for at least three years.

And construction is only getting better.

Photos: Inside a Gaza tunnel Photos: Inside a Gaza tunnel Israel Defense Forces took CNN correspondent Oren Liebermann into an elaborate Palestinian tunnel. Hide Caption 1 of 7 Photos: Inside a Gaza tunnel Such tunnels play a key role in ongoing tensions. Israel says Hamas militants use them to launch attacks. Hide Caption 2 of 7 Photos: Inside a Gaza tunnel The tunnel is wide enough to ride a motorcycle through it, and the IDF says troops found hidden weapons along its route. Hide Caption 3 of 7 Photos: Inside a Gaza tunnel Israel is testing a new tunnel detection system but is tight-lipped on how it works. Hide Caption 4 of 7 Photos: Inside a Gaza tunnel Israel is keeping its tunnel-detecting technology under wraps to avoid giving hints on how to counter it. Hide Caption 5 of 7 Photos: Inside a Gaza tunnel For Israel, the tunnel detector could become as vital as its air missile defense system. Hide Caption 6 of 7 Photos: Inside a Gaza tunnel Despite the new technology, Israeli officials say they think Hamas and other groups will continue building tunnels. And Israel will keep trying to find them. Hide Caption 7 of 7

"The next tunnels will be at least as good as this one," Elbo says.

Battleground of the future

Israel won't reveal many details about its new tunnel detection system for security reasons.

Tunnel expert Atai Shelach says to give out information about the system would allow Hamas and other militant groups to devise ways to avoid detection.

Tunnels will play a major part in future wars in the region, he says, and developing an effective detection system is critical.

"It's going to be our problem for at least five decades," Shelach predicts. "One of the main tools to struggle and to be a kind of a fair fight is to go underground," he says, where a tunnel's narrow confines can turn a bigger battle into a one-on-one fight.

In its effort to find new tunnels, Israel is cooperating with the United States.

An amendment to the House Defense Appropriations Bill allocates $40 million to work with Israel on the design and development of tunnel defense systems. And an amendment to the Intelligence Authorization Act from Rep. Steve Israel, D-New York, requires a report on the use of tunnels by militaries and militant groups.

"They are used for terrorist attacks, but they are also used to smuggle arms and contraband," Israel said. "We have learned that these tunnels are being used well beyond Israel. Korea is another example -- tunnels have been found in North Korea. Here at home, more than 150 tunnels have been found since 2009."

JUST WATCHED Gaza's dangerous game of hide and seek Replay More Videos ... MUST WATCH Gaza's dangerous game of hide and seek 02:26

Before the Gaza war, Israel developed Iron Dome, a defense system that shot rockets out of the skies as they flew toward Israeli towns and cities near Gaza.

Now, Israel is working on the underground equivalent of the Iron Dome, a system that can identify a tunnel before it becomes a threat.