mv cpp code for snake into cpp dict