Finally got priorityQueuue working correctly
still needs work