Create and add  function board_lost