Mystery of how flying snakes move is solved by scientists