cleanup of the board class