Use a more portable animation loop.
Merge pull request #2 from wannabefro/animation

Use a more portable animation loop.