[SOLVED] Auto finished levels

whenever I start a level it is finished, with the wrong code, then when I go out and back in it resets the level

Can you clarify the issue a bit more? How about screenshots of starting a level, and then after going back in.

I just realized, I went to a different level that looked the same, so I thought it was the same level. My bad

but the code was wrong.