Refactoroing score calculation out of MinimaxTreeSearchAlgorithm