Implement alpha-beta searching