Move rendering to animation frames.
Move rendering to animation frames.

Fixes #1041

google/codeworld,google/codeworld,google/codeworld,alphalambda/codeworld,alphalambda/codeworld,alphalambda/codeworld