Clean the code
Improve the foam rendering