>I cant understand this line.
If you hit the up arrow key and the current selection is the first item, it causes the selection to roll over to the last item.
>Also is it possible to create a background colour for the option if it is selected?
Yes, it is. Search MSDN for SetConsoleTextAttribute.