Added Alpha Beta pruning and fix a bug