now using animation state to say when something is running, removed unused variables