Not sure why the continue statement is not working any help is appreciated