If map is less than 0
if ( map . ContainsKey ( c ) ) { if ( map < 0 ) { allCount = ( allCount + levelCount ) ; } else { allCount = ( allCount + levelCount - map ) ; } } if ( ! map . ContainsKey ( c ) ) { map . Add ( c , levelCount ) ; } else { map = levelCount ; } }