Altered minimax algorithm to correctly score each move from perspective of AIPlayer