add destructor for ScrabbleFunc