Added AnimationScheduler for gameloop.

Haven't tested it yet, but should work fine.