Creating a smooth Gait