Er, yeah. It's code. What kind of help do you want with it? Is it doing something you don't expect, or not doing something you do?
It's also code without the [ code ] and [ /code ] tags, which is a lot harder to read than code correctlky formatted.
Just paging through, I noticed you have the interesting concept of deleting from the beginning or end of a circular list. Please enlighten us all as to where the beginning and end of a circle can be found.