Broken, but saving this before I do a rewrite to put the methof that makes the ArrayList of motifs in the main class. I have had no luck writing it in its own class, so I'm taking a step back and first getting a basic example to work in one class before refactoring to two.