got the program to loop, fixed some capitalization search issues