Maybe you're trying things that don't make sense. What is your break supposed to accomplish? Surely that says a lot on its own about what you need to change. Or if it doesn't, then maybe you haven't considered what break does at all, if that's the case then the next thing to do is find out more about that keyword. Don't just try things. Decide what you want to make happen and then implement that in code using only what you know what it does, and if you need more than that then you need to find out more until you know what that does so that you can put it to use and write something that makes sense, something that will run.