The function below is faulty I need a function that is able to switch from list[0] to list[1] when it reaches the end of list[0] which is the number 6.
number