Added animation code, update every 50ms, or 20fps.