Added animations

Animations working. Also fixed the sprites test.