Moved levelGeneration