Evolution of bacterial movement revealed