Expanding Versatility of Agile Locomotion through Policy Transitions Using Latent State Representation