removed queue.poll and changed up how queue works