Added alpha beta pruning to minimax