added animaiton flag for end game.