public void render(){
	
		
		for(int x = 0; x < tiles.length; x++){
			for(int y = 0; y < tiles.length; y++){
				if(tiles[x][y] == null)
					continue;
				if(tiles[x][y].background != null && tiles[x][y].foreground == null)
					tiles[x][y].background.render();
				if(tiles[x][y].foreground != null){
					if(tiles[x][y].background != null && tiles[x][y].foreground.transparent)
						tiles[x][y].background.render();
					tiles[x][y].foreground.render();
				}
			}
		}
	}