Trench warfare was inevitable because there is no greater defense against gas and artillery. Or at least not at the time. Trench fighting was terrible because not only do you have to worry about an arty shell hitting your bunk, but you get to worry about things like trenchfoot, and pneumonia. In the occasion that I wanted to break a stalemate and attack through the trenches, i would equip all my soldiers with some sort of close range automatic weapon, I would get a fighter plane, and have them drop napalm on the enemy trench. Then, as a cleanup, i would send an entire platoon, in groups of 6, into the enemy line, and i would go with them to sweep up the trench