#NEWLINE# def _is_stuck( self , sdq ) : #NEWLINE# #INDENT# stuck = False #NEWLINE# if ( ( len ( sdq ) == 4 ) and ( ( sdq [ 0 ] == sdq [ 2 ] ) or ( sdq [ 1 ] == sdq [ 3 ] ) ) ) : #NEWLINE# #INDENT# stuck = True #NEWLINE# #UNINDENT# return stuck