Add score function for minimaxing