fixed some type errors, renamed ab to alphaBeta