Animated Sprites and Dynamic Text Working

Fixed bugs and cleaned up various bits of code.