Given this paragraph, who wrote and directed Heads I Win, Tails You Lose

Heads I Win, Tails You Lose (Italian: Testa o Croce, also known as Heads or Tails) is a 1982 Italian comedy film written and directed by Nanni Loy.

The film consists in two back-to-back stories that deals with two "taboo" themes, the celibacy of the clergy in the episode of Renato Pozzetto and the homosexuality in the one with Nino Manfredi.[1][2]

Based on this passage of text, Nanni Loy wrote and directed the movie Heads I Win, Tails You Lose.