implementing sprite animation ctrl