separated level creation into a new js file