I am attempting to make square arms for animations based on a video game called "Minecraft."
Shown on photo #1, is what I am aiming for on the bending arms. I am having trouble on it because of the textures glitching out as they overlap once they begin bending. How am I able to prevent this?

Photo #1:
plans.png

Problem Photo:
problem.png