fixed program loop with global variable

can not exit or keep going
hackey solution for case sensativity
need to clean up and refactore loop