Updated code for minimax but app still under test