Implemented alpha-beta-pruning.