public void render() {
		if(blocksBackground != null){
			for(int x = 0; x < blocksBackground.length; x++){
				for(int y = 0; y < blocksBackground[x].length; y++){
					if(blocksBackground[x][y] != null){
						blocksBackground[x][y].render();
						
					}
				}
			}
		}
		if(blocksForeground != null){
			for(int x = 0; x < blocksForeground.length; x++){
				for(int y = 0; y < blocksForeground[x].length; y++){
					if(blocksForeground[x][y] != null){
						blocksForeground[x][y].render();
						
					}
				}
			}
		}
		for(Entity entity : entities){
			entity.render();
		}
	}