Einstein showed that time actually moves differently for someone in motion than for someone at rest, and it only exists relative to each observer. In the case of the train and the lightning, neither your observation nor your friend’s is “more right”—there is no objective viewpoint, just two different perceptions.