Added a parameter for a level generator to the Level class.