done part of alpha beta search