Minimax (doesn't pass auto grader)