Fixed Bugs in minimax and AIPlayer

This seems to be the best I can get for now the game plays consitently
badly