added setState method, added animations for running and jumping