Code form the textbased mafia tutorial on DIC