Move more things into functions (animation definition, walk, stand)