Queue Implementation

Added a queue as the way of moving to new checks rather than a for loop
in order to make the program more compatible with multithreading.