fix repeating chord logic and add ability to specify starting chord