alpha-beta pruning works. there is room for improvement, but this state will satisfy the assignment.