idle and walk animation logic