Fixed Json looping

Found out that code was stopping the loop once it reached the end of the
list. Fixed it so that it goes back to slide zero once it reaches the
end of the json.