implementing an animated scorebar