Deallocate memory of the game board.