finish animation when change state and restart game

finish animation when change state and restart game