Added alpha beta but don't know if it is working right
more changes