make sure to update the tail pointer when undoing a dequeue
2 files changed