implemented the jellyfish animation