worked on logic with the animation arrows