Adds the code used for the greed competition.