our alphaBeta function passes all test cases