Adding dispose-function to IBOSAlgorithms, which is called when the match ends and the algorithms are released.