def obtain_lock_id_to_hog():
 for id in board_ids():
  if _obtain_lock(id):
   return id
 return (-1)

def obtain_lock_id_to_hog ( ) : for id in board_ids ( ) : if _obtain_lock ( id ) : return id return ( - 1 )
finds a free id .