Fixed a bug with the minimax player

The minimax player did not act appropriately if the AI played as the max
player instead of the min player. This is now fixed.