Correct end game algorithm