minimax(unbeatable version) finish