How to make separate levels

thanks for the reply, but is this the normal way of doing things, or you are trying to solve my problem in a weird way, because i want to understand how the program is meant to work