The "sides" variable determines the amount of sides the polygon will have. Don't go too high, or it may mess up!
You may use my drawPoly block as long as you give credit.