update animations and logic