If item contains > 1 element then check order of element
else if ( pieces . get ( i ) . size ( ) > 1 && m . containsKey ( pieces . get ( i ) . get ( 0 ) ) ) { int idx = m . get ( pieces . get ( i ) . get ( 0 ) ) ; idx ++ ;