add angle rotation code and animation loop