Updated the flashing function to work with 2+ animations. Added test statements and assertions at the end of the function to indicate a pass or fail
added more test animations up to 10, random target distance and intervals, made epsilon smaller for better accuracy
Merge pull request #12 from sandyphan/master

Flashing animation is now fully working, all target distance and interval numbers are randomised