Added a setting to loop sequences

I couldn't find a better way to use a sequence as an idle animation. As it's only a minor change and adds functionality, I think it'd be more useful in here that as its own task.