add code generator for new_game