public void resize(int x, int y) {
		if (x < 1 || y < 1)
			return;
		
		Tile newMap[][] = new Tile[x][y];
		initTab(newMap);
		
		if (x <= tab.length && y <= tab[0].length) {
			copy(newMap, tab, x, y);
		}
		else if (x > tab.length && y <= tab[0].length) {
			copy(newMap, tab, tab.length, y);
		}
		else if (x <= tab.length && y > tab[0].length) {
			copy(newMap, tab, x, tab[0].length);
		}
		else {
			copy(newMap, tab, tab.length, tab[0].length);
		}
		
		tab = newMap;
		map = new Map(tab);
		boxMap = new Box(POS_MAP_X, POS_MAP_Y, Math.min(tab.length, MAP_DISPLAY_NB_TILE_X) * Tile.SIZE, Math.min(tab[0].length, MAP_DISPLAY_NB_TILE_Y)  * Tile.SIZE);
	}