basic alpha beta search