Not having arms and legs doesn't stop snakes from moving. They have developed several different ways of moving to deal with particular environments. Each type of snake movement is discrete and distinct from the others.