public void mousePressed(MouseEvent e)
	{
		if(!loading && !updating && !saving && !verticalScrollbar.isSelected() && !horizontalScrollbar.isSelected())
		{
			overlay.mousePressed(e);
		}
		if(!updating && tm.getTiles().size()>0)
		{
			for(int i=0;i<tm.getTiles().size();i++)
			{
				tm.getTiles().get(i).mousePressed(e);
			}
		}
	}