changed animation to change on setinterval