added minmax ,alpha beta and optimized actions generations