public void drawMap()
	{
		boolean search = false;
		r = new Rectangle(x,y,height,width);
		for(Tile t: a.area) //for every tile in the area
		{
			if(r.intersects(t.tile)) // if player intersects with the tile
			{
				for(Tile t1: map.map) // for every tile on the map
				{
					//System.out.println("Area Tile: " + t.y + " Map Tile: " + t1.y + " My Pos: " + y);	
					//System.out.println("Area Tilex: " + t.x + " Map Tilex: " + t1.x);
					if(t.tile.intersects(t1.tile))
					{
						search = true;
						System.out.println("duplicate");
					}
				}
				if(search == false)
				{
					map.addTile(t);
					//System.out.println("draw");
				}
				
			}
			
		}
	}