Ported applet to scala
Added a simple test of polygons.
=> fail :/