Fix up line game to end infinite stack growth