public void renderEntities(Display display, int xoffset, int yoffset)
	{
		display.setOffset(xoffset, yoffset);
		for(Entity e : entities)
		{
			//draws entities only if they're in a 20 block radius of player
			if((e.getX())<(player.getX())+(20<<3)&&(e.getX())>(player.getX())-(20<<3))

			{
				if((e.getY())<(player.getY())+(20<<3)&&(e.getY())>(player.getY())-(20<<3))
				{
					e.render(display);
				}
			}

		}
	}