Moved animation frame loop to Demo class
added piston demo