minimax need to be changed. 
MyAlgo begin to look cool.