check bottom cell
if ( ( elex < m - 1 ) and ( rect [ elex + 1 ] [ eley ] == 0 ) ) : NEW_LINE INDENT rect [ elex + 1 ] [ eley ] = 1 NEW_LINE v = [ elex + 1 , eley ] NEW_LINE qu . put ( v ) NEW_LINE DEDENT