Add brake to gracefulMovement.js