private void renderEntities()
	{
		for(Entity ent: entities)
		{
			if(ent==null)
				continue;
			ent.render();
			int[] pix = ent.getPixels();
			for(int x = 0; x < ent.getImageWidth(); x++)
			{
				for(int y = 0; y < ent.getImageHeight(); y++)
				{
					int yy = (((y + ent.getLocation().getY()) - yOffset) - ((ent.getImageHeight() - ent.getHeight()) / 2));
					int xx = ((x + ent.getLocation().getX()) - xOffset - ((ent.getImageWidth() - ent.getWidth()) / 2));
					if(pix[ent.getImageWidth() * y + x] != ScreenManager.getInstance().getOmmitColor() && yy < height && xx < width)
					{
						pixels[width * yy  + xx] = pix[ent.getImageWidth() * y + x];
					}
				}
			}
		}
	}