Alpha Beta Pruning with minimax algorithm