private void deleteObject(Tile temp)
	{
		if (temp.getObject() != null)
		{
			boolean road = false;
			if (temp.getObject() instanceof Road)
			{
				road = true;
			}
			mapObjects.remove(temp.getObject());
			Point start = new Point (temp.getObject().getStartPos().x, temp.getObject().getStartPos().y);
			Point end = new Point (temp.getObject().getEndPos().x, temp.getObject().getEndPos().y);
			for (int i = start.x; i <= end.x; i++)
			{
				for (int j = start.y; j <= end.y; j++)
				{
					if (grid[i][j].getObject() != null)
					{
						grid[i][j].setObject(null);
						gridArea++;
					}
				}
			}
			System.out.println(gridArea);
			if (road)
			{
				MapObject[] nearObjects = getNearObjects(start.x, start.y);
				for (int i = 0; i < nearObjects.length; i++)
				{
					if (nearObjects[i] != null && nearObjects[i] instanceof Road)
					{
						findTexture(nearObjects[i], nearObjects[i].getStartPos().x, nearObjects[i].getStartPos().y, "LRTB", true);
					}
				}
			}

		}

	}