public void populateLevel(CreatureFactory factory, ItemFactory itm) {
		Game.game.player = factory.newPlayer(messages);
		Random rand = new Random();
		for (int i = 0; i < CreatureList.genAmount.size(); i++) {
			if (CreatureList.startGen.get(i) <= Game.game.world.level) {
				int r = rand.nextInt(CreatureList.genAmount.get(i));
				for (int a = 0; a < r; a++) {
					factory.newCreature(CreatureList.creatures.get(i).ai.getName());
				}
			}
		}
		for (int i = 0; i < ItemList.genAmount.size(); i++) {
			if (ItemList.startGen.get(i) <= Game.game.world.level) {
				int r = rand.nextInt(ItemList.genAmount.get(i));
				for (int a = 0; a < r; a++) {
					itm.newItem(ItemList.items.get(i).getName());
				}
			}
		}
	}