Fix MinMax algo to give optimal move dependent on player