Flying object propels itself by flipping inside out