refactoring. Added jumping animation