Snail animation and some code cleaning