It seems impossible to tell that the program wants "come" translated in one place by jön and in the other place by megy.
come out = kijönni, go out = kimenni