add "loop" functionality

Added an option to loop the spinner once it has reached its boundaries.