moved animation movements to idle function