Added a more general Animation class
Major cleanup of tetris webgl