Rubik's Snake

In Rubik's Snake, your shown a picture and you're shown a snake. You must twist and rotate the snake to create the given shapes. It's trickier than it seems. Pay attention to how the shape moves so it's easier to shape it as you advance through the levels.