fixed a bug in the AnimSequence class where it would iterate outside the bounds of the frame list.