 #        return true;
 #    
 #
-#    return false;
+    return deadlocked_positions
 
   ###
     Test a specific deadlocked square and return the deadlocked positions

    deadlocked_positions = @deadlocked_square(cell.box, cell.down, cell.down_left, cell.left,
                                              pos.box,  pos.down,  pos.down_left,  pos.left,
                                              deadlocked_positions)
                                              
    return deadlocked_positions
    
    ###
    # Last push made a Z deadlock
    ###

        deadlocked_positions.push({ m:pos3.m, n:pos3.n })
                
    return deadlocked_positions
    
  deadlocked_z: (cell_box, cell_box2, cell_wall1, cell_wall2, pos_box, pos_box2, deadlocked_positions) ->
    if cell_wall1 == '#' and cell_wall2 == '#'
      if (cell_box == '$' || cell_box == '*') and (cell_box2 == '$' || cell_box2 == '*')
        if not (cell_box == '*' and cell_box2 == '*') 
          if not @position_in_array(pos_box, deadlocked_positions)
            deadlocked_positions.push({ m:pos_box.m, n:pos_box.n })
          if not @position_in_array(pos_box2, deadlocked_positions)
            deadlocked_positions.push({ m:pos_box2.m, n:pos_box2.n })
              
    return deadlocked_positions
          
  ###
    return true if position is in a corner of level (corner with 2 walls)
