(;FF[4]GM[1]SZ[19]ST[2]CA[UTF-8]AP[SGFC:1.16]

PB[kmg]
BR[15k]
PW[Graal67]
WR[15k]
KM[6.5]
DT[2014-08-11]
PC[IGS-PandaNet]
RE[B+Resign]
TM[600]
RU[Japanese]

C[hi, and thanks for reviewing!

i'm black and possibly about 15k.
this was a close match except for that situation he had read wrong in the end. 

my questions: 
- was 171 the worst move in the game?
- what should i change in my midgame to NOT have such a bad position in the endgame? i don't have many moves in the endgame, that let me keep sente.
- and, of course, if you have general advice, please let me know
:-)];B[pp];W[dc];B[pd];W[dp];B[fq];W[fo];B[hp];W[kq];B[dr];W[oq]
;B[pq];W[mp];B[de];W[gc];B[jc];W[mc];B[je];W[me];B[pf];W[pc]
;B[oc];W[od];B[qc];W[nc];B[pb];W[oe];B[lb]
(;W[nb];B[ld];W[md];B[cq];W[cp];B[ge];W[cl];B[ci];W[bj];B[bi]
;W[bd];B[cd];W[cc];B[ck];W[bk];B[dk];W[dl];B[pm]
(;W[qj];B[qk];W[qg];B[qf];W[pg];B[of]TR[pg][qg][qj]SQ[nb][mc]
[nc][md][od][me][oe]C[two weak white groups, which still have to live]
;W[nf];B[pj];W[qi];B[pi];W[og];B[ng];W[mg];B[nh];W[kf];B[rg]
;W[rh]
(;B[rj]C[beginning of a series of mistakes...];W[rf];B[ri];W[qh]
;B[re];W[sg]
(;B[qe];W[oi]C[totally underestimated this stone]
(;B[oh];W[pk];B[oj];W[rk];B[ql];W[sj];B[ok];W[si]C[so, that group lives. following now: a few stones to get a bit of territory]
;B[bp];W[bo];B[bq];W[cn];B[be];W[bc];B[np];W[nq];B[op];W[ef]
C[i call such stones "panic stones" because i have absolutely no idea how to react]
;B[fc]C[a nice response to isolate this 'panic stone'];W[fb]
;B[ec];W[eb];B[ee];W[fh];B[ff];W[eg];B[dh];W[cj];B[dj];W[fj]
;B[eh];W[fg];B[fi];W[gi];B[ei];W[hh];B[gj];W[fk];B[hi];W[ih]
;B[gh];W[gg];B[hg];W[hf];B[ig];W[if];B[jg];W[gf];B[jf];W[gi]
;B[mf];W[lf];B[gh];W[fd]C[i had not enough threats, right?]

(;B[gi];W[fe];B[df];W[he];B[ed];W[hc];B[el];W[em];B[fl];W[jl]
;B[kk];W[lj];B[mi]TR[lj][kk][jl]C[looks strange];W[lh];B[li]
;W[lc];B[kc];W[le];B[kh];W[mh];B[kj]
(;W[ko];B[kl];W[jm];B[ln];W[kn];B[mo];W[lp];B[lm];W[rm];B[rn]
;W[qm];B[qn];W[rl];B[pl];W[pr];B[qr];W[ps]
(;B[rq];W[hr];B[iq];W[ir];B[jq];W[jr]
(;B[hq];W[fr]
(;B[er];W[gr];B[fp];W[eq];B[ep];W[dq];B[eo];W[fn];B[en];W[fm]
;B[dn];W[co];B[dm];W[cm]C[kill or be killed]
(;B[gl];W[hn];B[gn];W[gm];B[hm];W[go];B[in];W[im];B[hl];W[io]
;B[jk]TR[dm][dn][en][eo][ep][fp][hp][fq][hq][iq][jq]C[had to give them up , so it's close now]
;W[jn]C[why? did i overlook something?];B[kg];W[lg];B[ic];W[hd]
;B[hb];W[gb];B[ib];W[dg];B[cg];W[cf];B[bf]
(;W[br];B[bs];W[cs];B[cr];W[as];B[ds];W[ar]
(;B[aq];W[ap];B[bs];W[ao];B[qs];W[nr];B[aj];W[al]
(;B[ai];W[bm];B[ak];W[bl];B[an];W[gp];B[gq]
(;W[jp]C[his big mistake];B[ho]C[it was a very interesting game with a lot of difficult calculations and hard to find. but you did it well.]
)
(;W[ho]C[with a normal end game this would have been very close]
;B[ob];W[il];B[ik];W[sn];B[so];W[sm];B[ro];W[se];B[sd];W[sf]
;B[rd];W[oa];B[pa];W[na];B[ga];W[fa];B[ha];W[ae];B[af];W[ad]
;B[la];W[dd];B[ce];W[kd]
(;B[jd];W[ke]
(;B[kb]
(;W[fs]TW[aa][ba][ca][da][ea][ab][bb][cb][db][ac][gd][ld][nd]
[ge][ne][ff][mf][rg][sh][ri][rj][sk][sl][am][dm][an][bn][dn]
[en][gn][in][do][eo][jo][ep][fp][hp][ip][jp][kp][fq][gq][hq]
[iq][jq][lq][mq][kr][lr][mr][or][gs][hs][is][js][ks][ls][ms]
[ns][os]TB[ia][ja][ka][qa][ra][sa][jb][qb][rb][sb][pc][rc][sc]
[qd][cf][ag][bg][ah][bh][ch][hh][ih][jh][di][ii][ji][ki][ni]
[oi][ej][fj][hj][ij][jj][lj][mj][nj][ek][fk][gk][hk][lk][mk]
[nk][pk][ll][ml][nl][ol][mm][nm][om][mn][nn][on][pn][no][oo]
[po][qo][qp][rp][sp][qq][sq][ar][br][rr][sr][as][cs][rs][ss]
)
(;W[ph];B[ni];W[fs]TW[aa][ba][ca][da][ea][ab][bb][cb][db][ac]
[gd][ld][nd][ge][ne][ff][mf][rg][sh][ri][rj][sk][sl][am][dm]
[an][bn][dn][en][gn][in][do][eo][jo][ep][fp][hp][ip][jp][kp]
[fq][gq][hq][iq][jq][lq][mq][kr][lr][mr][or][gs][hs][is][js]
[ks][ls][ms][ns][os]TB[ia][ja][ka][qa][ra][sa][jb][qb][rb][sb]
[pc][rc][sc][qd][cf][ag][bg][ah][bh][ch][hh][ih][jh][di][ii]
[ji][ki][oi][ej][fj][hj][ij][jj][lj][mj][nj][ek][fk][gk][hk]
[lk][mk][nk][pk][ll][ml][nl][ol][mm][nm][om][mn][nn][on][pn]
[no][oo][po][qo][qp][rp][sp][qq][sq][ar][br][rr][sr][as][cs]
[rs][ss]))
(;B[ph];W[fs];B[kb]TW[aa][ba][ca][da][ea][ab][bb][cb][db][ac]
[gd][ld][nd][ge][ne][ff][mf][rg][sh][ri][rj][sk][sl][am][dm]
[an][bn][dn][en][gn][in][do][eo][jo][ep][fp][hp][ip][jp][kp]
[fq][gq][hq][iq][jq][lq][mq][kr][lr][mr][or][gs][hs][is][js]
[ks][ls][ms][ns][os]TB[ia][ja][ka][qa][ra][sa][jb][qb][rb][sb]
[pc][rc][sc][qd][cf][ag][bg][ah][bh][ch][hh][ih][jh][di][ii]
[ji][ki][ni][oi][ej][fj][hj][ij][jj][lj][mj][nj][ek][fk][gk]
[hk][lk][mk][nk][pk][ll][ml][nl][ol][mm][nm][om][mn][nn][on]
[pn][no][oo][po][qo][qp][rp][sp][qq][sq][ar][br][rr][sr][as]
[cs][rs][ss]))
(;B[ke];W[jd];B[id];W[ld];B[ie];W[ph];B[ni]TW[aa][ba][ca][da]
[ea][ab][bb][cb][db][ac][gd][nd][ge][ne][ff][mf][rg][sh][ri]
[rj][sk][sl][am][dm][an][bn][dn][en][gn][in][do][eo][jo][ep]
[fp][hp][ip][jp][kp][fq][gq][hq][iq][jq][lq][mq][kr][lr][mr]
[or][gs][hs][is][js][ks][ls][ms][ns][os]TB[ia][ja][ka][qa][ra]
[sa][jb][kb][qb][rb][sb][pc][rc][sc][qd][cf][ag][bg][ah][bh]
[ch][hh][ih][jh][di][ii][ji][ki][oi][ej][fj][hj][ij][jj][lj]
[mj][nj][ek][fk][gk][hk][lk][mk][nk][pk][ll][ml][nl][ol][mm]
[nm][om][mn][nn][on][pn][no][oo][po][qo][qp][rp][sp][qq][sq]
[ar][br][rr][sr][as][cs][rs][ss];W[fs]TW[aa][ba][ca][da][ea]
[ab][bb][cb][db][ac][gd][nd][ge][ne][ff][mf][rg][sh][ri][rj]
[sk][sl][am][dm][an][bn][dn][en][gn][in][do][eo][jo][ep][fp]
[hp][ip][jp][kp][fq][gq][hq][iq][jq][lq][mq][kr][lr][mr][or]
[gs][hs][is][js][ks][ls][ms][ns][os]TB[ia][ja][ka][qa][ra][sa]
[jb][kb][qb][rb][sb][pc][rc][sc][qd][cf][ag][bg][ah][bh][ch]
[hh][ih][jh][di][ii][ji][ki][oi][ej][fj][hj][ij][jj][lj][mj]
[nj][ek][fk][gk][hk][lk][mk][nk][pk][ll][ml][nl][ol][mm][nm]
[om][mn][nn][on][pn][no][oo][po][qo][qp][rp][sp][qq][sq][ar]
[br][rr][sr][as][cs][rs][ss])))
(;B[ob])
(;B[kd])
(;B[il]))
(;B[bs];W[ap];B[aq]))
(;W[bs]C[killing move? I think you can get a ko]
(;B[br]
(;W[cs];B[ds]
(;W[fs];B[as];W[ar];B[cr]
(;W[as];B[aq];W[bs];B[as])
(;W[ap];B[as];W[bs];B[aq];W[as]))
(;W[ap]))
(;W[ar];B[cs]
(;W[es];B[aq])
(;W[ap];B[es];W[ao];B[as]C[at least you get a ko])))
(;B[cs]
(;W[br];B[ar]
(;W[ap];B[es])
(;W[es];B[ap];W[ao];B[cr]))
(;W[ar]
(;B[br];W[ap];B[es])
(;B[es]
(;W[br];B[cr];W[ap];B[aq])
(;W[ap];B[br];W[aq];B[as]))))))
(;B[hm]C[very hard to find during the game with such a time limit - but I think it works]
;W[gl];B[ek];W[gm];B[hl]
(;W[hn];B[in]
(;W[io];B[ho]
(;W[im];B[gn])
(;W[gn];B[gk]))
(;W[ho];B[io];W[hk]
(;B[gk];W[im])
(;B[im];W[gk];B[ik];W[il];B[go])))
(;W[ho];B[hn]
(;W[io];B[go];W[gk];B[hk])
(;W[go];B[io];W[jp]
(;B[in];W[ip];B[gk];W[gp])
(;B[ip]
(;W[in];B[gk];W[jo];B[gn])
(;W[gp];B[gq]
(;W[in];B[gk])
(;W[gk];B[hk];W[in];B[gn])))))))
(;B[eq]C[would have prevented so much misery]))
(;B[gr];W[hq];B[gq]))
(;B[qs]C[gives you sente]
(;W[or])
(;W[ir];B[hr];W[iq];B[hq];W[hs];B[gs];W[is];B[fr];W[or];B[aj]
;W[bl];B[hl])))
(;W[ir]))
(;B[fe]C[just a try - with many variations];W[gi];B[hj]
(;W[gh]
(;B[ji])
(;B[ki];W[ji];B[jj];W[ie];B[id];W[hd];B[he];W[jh];B[kh]))
(;W[jh];B[gh];W[ni];B[ph];W[gi];B[mh];W[gh];B[jj];W[lh];B[kg]
;W[lg];B[le];W[li];B[kh];W[ki];B[ji];W[kc]
(;B[lc];W[ke];B[kd];W[id]
(;B[ie]
(;W[jd];B[he];W[ic];B[jb];W[ib])
(;W[he];B[jd];W[hd];B[gd];W[hc]))
(;B[jd];W[hd]))
(;B[jd];W[lc];B[kb]
(;W[lk])
(;W[ie]
(;B[id];W[hd];B[he];W[ke];B[kd];W[jb])
(;B[hd];W[id];B[hc];W[kd];B[ke]
(;W[jb])
(;W[ic];B[jb];W[ib];B[hb];W[ha];B[ga];W[gb];B[ia];W[gd];B[he]
;W[ja];B[ka];W[fa];B[df];W[ha];B[ja];W[mb];B[ga];W[ob])))))))
(;B[nj]C[?]))
(;B[pe]C[maybe better]))
(;B[rf]C[can i kill?

I think so - if my sequence is correct.....];W[rk];B[ql];W[rl]
;B[rm];W[sj];B[sl]C[dead]))
(;W[qk]))
(;W[og]C[wouldn't it be better, to get that group out of there?

yes - o18 creates bad shape (open triangle)];B[of];W[nf];B[pg]
;W[oh];B[pi];W[kf];B[jf];W[jg]))
