The HTML source code is a well-commented, fun read.<p>- There's a fair bit of math to model drag, mass, and density using the specific gravity of ice and seawater (with tweaks to make it more realistic for 2d).<p>- Try adding a polygon that overlaps itself (self-intersects).<p>- You can paste images! The code traces the image and picks the most complex polygon.