My work on the priority queue. Compiles, but doesn't run.
Fixed the next thread to run problem.
Fixed thread sleeping