try { map[ty-yOffset][tx-xOffset] = ti; } catch(Exception e) {  }
try { map[ty - yOffset][tx - xOffset] = ti; } catch (ArrayIndexOutOfBoundsException e) {  }
    public void setTileAt(int tx, int ty, Tile ti) {        //if (tx >= 0 && ty >= 0 && tx < widthInTiles && ty < heightInTiles) {        	try {        	           		map[ty-yOffset][tx-xOffset] = ti;        	} catch(Exception e) {        		//e.printStackTrace();        	}        //}    }