Optimized Minimax by implementing alpha-beta pruning