completed alpha-beta pruning on minimax algorithm