To that end, he decides to beat Mr. Woodcock at his own game and spends the whole day with him.
He decides to beat Mr. Woodcock at his own game. This is to that end. He spends the whole day with him. This is to that end.