“The film was really about my heartbreak over the world's losers,” writer/director James Gray tells IndieWire, breaking down the film's perfect ending.