What is the best approach to handling a level based game?

Thank you. I guess I found a solution, which requires me to create a C++ class, but it’s ok.