Program 8 almost working

Fixed nested list issue, however if there is an item after the nested
list it does not count