Refactored the queue for managing the levels.
Revised the structure of the new level queue.