You didn't move the events, you just removed the genercode link. Move everything out of level1event that doesn't relate to level1, put it in genercode, then include genercode back into level1events. You want all of the code needed for all levels in one file, and only the specific level events in each of their related eventsheets.
Alternately you can do it all in one eventsheet but break out the specific events based on the "currentlevel" variable, which you already have.