Variable number isn't being declared

I have this variable called levelNumber, which is a num var in my Level class. Then in my Main document class, I add an instance of the Level class, and try to declare levelNumber equals 1 from the Main class. Doesn’t seem to work. Is there any way to tell the Level class that levelNumber equals 1 in my Main class?

If you want, I can post my code to better understand.