Moved the level generator to the util file

where it's supposed to be