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.
chg: complete implemtation of animation
chg: improved implemtation of animation

moved definition for function pointer from main file to animation file.
added a new function for flow control (top value is where animation is
completed, chang value is where tmp counting is changed from postive to
negative)