Press the green flag and answer the questions.
There's more error checking still to do, for example making sure the length of side won't make the polygon go off stage (because then it warps the polygon). So I've used a few general numbers instead, which limits the size of some polygons. Oh well...for next time or for when I have more time! Also, I'd like to clean up some of the code ... it's a little messy.