free the cells when freeing the board