move stack manipulation functions to mc_generator.h from mc_generator.c
detect accepting cycle using cyan color