now it loops! needs a ton of logic in the .c file, which will be patterned like the one in there.