The end game is refacted.