Change the animation of the walls

What you’re looking for is 8-bit masking of tiles.