Ryan Reynolds Was Writing Deadpool While Filming Green Lantern