Fixed my logic for using animations