updating animation speed to 20Ms or 50 frames per second.