private static void addResources(int i, int j, int chance, Texture tex){
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.SW));
		}
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.SE));
		}
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.NW));
		}
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.NE));
		}
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.W));
		}	
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.E));
		}
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.S));
		}
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.N));
		}
		if(Math.floor(Math.random()*chance)==1){
			Main.tiles[i][j].resources.add(new Resource(tex, ResourceLocation.C));
		}		
	}