public void updateScrollBars()
	{
		if(tm.getTiles().size()>0)
		{
			verticalScrollbar.update();
			if(verticalScrollbar.isSelected() && !tm.isTileSelected() || verticalScrollbar.isKeyboardInput())
			{
				//System.out.println("vert bar selected: "+verticalScrollbar.isSelected()+", "+verticalScrollbar.isKeyVert());
				tm.updateVert((int)verticalScrollbar.getDisplacement());

			}
			horizontalScrollbar.update();
			if(horizontalScrollbar.isSelected() && !tm.isTileSelected() || horizontalScrollbar.isKeyboardInput())
			{
				//System.out.println("horiz bar selected: "+horizontalScrollbar.isSelected()+ ", "+horizontalScrollbar.isKeyHoriz());
				tm.updateHoriz((int)horizontalScrollbar.getDisplacement());

			}
		}
	}