public void render(Graphics g, Camera cam)
			{
				int tileX = (int) cam.x / Constants.TILE_SIZE;
				int tileY = (int) cam.y / Constants.TILE_SIZE;

				for (int x = tileX; x < tileX + 17; x++)
					for (int y = tileY; y < tileY + 11; y++)
						{
							g.drawImage(hub.images.terrain[tiles[x][y].id], Math.round((x * Constants.TILE_SIZE) - cam.x), Math.round((y * Constants.TILE_SIZE) - cam.y),
									hub.renderer);
							
							for (Entity e : tiles[x][y].getEntities())
								e.render(g, cam);

							if (hub.DEBUG)
								if (tiles[x][y].isOccupied())
									g.fillRect((int) (x * Constants.TILE_SIZE - cam.x), (int) (y * Constants.TILE_SIZE - cam.y), 40, 40);
						}
			}