Added BestValue class to improve readability of minimax function