changed way it chooses animation ,currently bugged