fix motor imagery

This allows multiple repeats and code looks cleaner.