Added the smooth parameter to toggle sliding move of the pieces. (ready to be merged into main)