Flash Gordon was co-written by the scriptwriter who had worked on a remake of the 1976 monster film directed by whom?