Changed lightOrder from queue to list to allow for the removal of elements in the middle of the list.