chg: function pointer array for program execution

Added function pointer array for execution of the animations. An ending
program returns 1 which will be added to the ruuning counter. Max
counter goes to Array limit then start again at zero.