first version of character animation implementation