Implemented alpha-beta pruning, and changed a bunch of other stuff.