fixed bugs in alpha beta search