public static int[][] updateTilesValue(int[][] tiles, int x, int y){
    	int[][] result = new int[tiles.length][tiles[0].length];
    	
    	for(int i=0; i<tiles.length; i++){
    		for(int j=0; j<tiles[i].length; j++){
    			result[i][j] = tiles[i][j];
    		}
    	}
    	
    	if(x >= 0 && y >= 0 && x < tiles.length && y < tiles[0].length) tiles[x][y] += 1;
    	
    	return result;
    }